PEATDB/plugins/PEATSAplugin.py
def updateJobsTable(self):
        """Show table for current jobs list"""
        self.checkJobsDict()
        jobdict = self.DB.meta.peatsa_jobs      
        M = TableModel()
        #open job log from file
        f=open('jobstates.log','r')
        jl = pickle.load(f) 
        for j in jobdict:            
            jobid = jobdict[j]           
            try:
                M.addRecord(j,state=jl[jobid]['State'],date=jl[jobid]['Date'])
            except:
                M.addRecord(j,state='Not in DB')
        self.jobstable = TableCanvas(self.tf, model=M, height=100, editable=False)
        self.jobstable.createTableFrame()       
        self.log.yview('moveto', 1)
        f.close()
        return
Show table for current jobs list
Show table for current jobs list
Show table for current jobs list
def updateJobsTable(self):
        self.checkJobsDict()
        jobdict = self.DB.meta.peatsa_jobs      
        M = TableModel()
        f=open('jobstates.log','r')
        jl = pickle.load(f) 
        for j in jobdict:            
            jobid = jobdict[j]           
            try:
                M.addRecord(j,state=jl[jobid]['State'],date=jl[jobid]['Date'])
            except:
                M.addRecord(j,state='Not in DB')
        self.jobstable = TableCanvas(self.tf, model=M, height=100, editable=False)
        self.jobstable.createTableFrame()       
        self.log.yview('moveto', 1)
        f.close()
        return
def updateJobsTable ( self ) : self . checkJobsDict ( ) jobdict = self . DB . meta . peatsa_jobs M = TableModel ( ) f = open ( 'jobstates.log' , 'r' ) jl = pickle . load ( f ) for j in jobdict : jobid = jobdict [ j ] try : M . addRecord ( j , state = jl [ jobid ] [ 'State' ] , date = jl [ jobid ] [ 'Date' ] ) except : M . addRecord ( j , state = 'Not in DB' ) self . jobstable = TableCanvas ( self . tf , model = M , height = 100 , editable = False ) self . jobstable . createTableFrame ( ) self . log . yview ( 'moveto' , 1 ) f . close ( ) return
Show table for current jobs list
Show table for current jobs list
"""Show table for current jobs list""" #open job log from file
self