#NEWLINE# def _get_product_id_by_bug_id( self , bug_id ) : #NEWLINE# #INDENT# cursor = self . sql_cnx . cursor ( ) #NEWLINE# id_row = 'product_id' #NEWLINE# request = ( 'SELECT %s FROM bugs WHERE bug_id=%s LIMIT 1' % ( id_row , str ( bug_id ) ) ) #NEWLINE# cursor . execute ( request ) #NEWLINE# return cursor . fetchone ( ) [ id_row ]