PEATDB/plugins/PEATSAplugin.py
def fetchJob(self):
        """Get job from it's db ID and add to list"""
        
        mpDlg = MultipleValDialog(title='Get Job',
                                    initialvalues=('','my job1'),
                                    labels=('ID','Your label',),
                                    types=('string','string'),
                                    parent=self.mainwin)
        if mpDlg.result == True:
            jobid = mpDlg.results[0]
            name = mpDlg.results[1]
        else:
            return
        job = PEATSA.WebApp.Data.Job(jobid, self.connection)       
        if job != None: 
            print 'adding job id %s to list' %job.identification
            self.storeJob(name, job)
            self.updateJobs()
        return
Get job from it's db ID and add to list
Get job from it's db ID and add to list
Get job from it ' s db ID and add to list
def fetchJob(self):
        mpDlg = MultipleValDialog(title='Get Job',
                                    initialvalues=('','my job1'),
                                    labels=('ID','Your label',),
                                    types=('string','string'),
                                    parent=self.mainwin)
        if mpDlg.result == True:
            jobid = mpDlg.results[0]
            name = mpDlg.results[1]
        else:
            return
        job = PEATSA.WebApp.Data.Job(jobid, self.connection)       
        if job != None: 
            print 'adding job id %s to list' %job.identification
            self.storeJob(name, job)
            self.updateJobs()
        return
def fetchJob ( self ) : mpDlg = MultipleValDialog ( title = 'Get Job' , initialvalues = ( '' , 'my job1' ) , labels = ( 'ID' , 'Your label' , ) , types = ( 'string' , 'string' ) , parent = self . mainwin ) if mpDlg . result == True : jobid = mpDlg . results [ 0 ] name = mpDlg . results [ 1 ] else : return job = PEATSA . WebApp . Data . Job ( jobid , self . connection ) if job != None : print 'adding job id %s to list' % job . identification self . storeJob ( name , job ) self . updateJobs ( ) return
Get job from it's db ID and add to list
Get job from it ' s db ID and add to list
"""Get job from it's db ID and add to list"""
self