#NEWLINE# def searchDatabase( self ) : #NEWLINE# #INDENT# self . statusText . setText ( 'Running query...' ) #NEWLINE# self . repaint ( ) #NEWLINE# conn = self . conn #NEWLINE# config = self . config #NEWLINE# if ( conn . dbtype == 'MySQL' ) : #NEWLINE# #INDENT# config_name = config . pop ( 'name' ) #NEWLINE# config_id = config . pop ( 'id' ) #NEWLINE# #UNINDENT# workflow_list = runWorkflowQuery ( config , vistrail = self . vistrail , version = self . version , fromTime = self . fromTime , toTime = self . toTime , user = self . user , offset = self . offset , limit = self . limit , modules = self . modules , thumbs = self . thumbs ) #NEWLINE# if ( 0 == self . offset ) : #NEWLINE# #INDENT# ( workflow_list , self . numRows ) = workflow_list #NEWLINE# #UNINDENT# if ( conn . dbtype == 'MySQL' ) : #NEWLINE# #INDENT# config [ 'name' ] = config_name #NEWLINE# config [ 'id' ] = config_id #NEWLINE# #UNINDENT# self . setup_results ( workflow_list ) #NEWLINE# self . updateStatus ( )