示例#1
0
 def _populateResultList( self, listCtl, resultSet ):
     results = []
     ftypes = {}
     for c in SystemCode.codeGroup('FTYP'):
         ftypes[c.code] = c.value+' ('+SystemCode.lookup('FCLS',c.category,'')+')'
     try:
         for row in resultSet:
             r=dict()
             r['name_id'] = row.name_id
             r['name'] = row.name
             r['name_status'] = SystemCode.lookup('NSTS',row.name_status)
             r['feat_type'] = ftypes.get(row.feat_type)
             results.append(r)
     except:
         handleException()
         results=[]
     listCtl.setList(results,
         adaptor=self._adaptor,
         columns=['name','name_status','feat_type'],
         headers=['Name','Status','Feature Type'])
     listCtl.clearSelection()
示例#2
0
 def _populateResultList(self, listCtl, resultSet):
     results = []
     ftypes = {}
     for c in SystemCode.codeGroup("FTYP"):
         ftypes[c.code] = (c.value + " (" +
                           SystemCode.lookup("FCLS", c.category, "") + ")")
     try:
         for row in resultSet:
             r = dict()
             r["name_id"] = row.name_id
             r["name"] = row.name
             r["name_status"] = SystemCode.lookup("NSTS", row.name_status)
             r["feat_type"] = ftypes.get(row.feat_type)
             results.append(r)
     except:
         handleException()
         results = []
     listCtl.setList(
         results,
         adaptor=self._adaptor,
         columns=["name", "name_status", "feat_type"],
         headers=["Name", "Status", "Feature Type"],
     )
     listCtl.clearSelection()
示例#3
0
 def populateLastWebUpdate( self ):
     label = ''
     update = SystemCode.lookup('SYSI','WEBU')
     if update:
         label = 'Last update: ' + update
     self.uLastUpdateLabel.setText( label )
示例#4
0
 def populateLastWebUpdate(self):
     label = ""
     update = SystemCode.lookup("SYSI", "WEBU")
     if update:
         label = "Last update: " + update
     self.uLastUpdateLabel.setText(label)
示例#5
0
 def populateLastWebUpdate( self ):
     label = ''
     update = SystemCode.lookup('SYSI','WEBU')
     if update:
         label = 'Last update: ' + update
     self.uLastUpdateLabel.setText( label )