def refreshCtrl(self): ListCtrlView.refreshCtrl(self) try: undos = self.model.transport.getUndoableTransactions() except xmlrpclib.Fault, error: wx.LogError(Utils.html2txt(error.faultString))
def refreshCtrl(self): ListCtrlView.refreshCtrl(self) perms = self.model.transport.getPermissions() roles = self.model.transport.getRoles() colls = [("Acquired", 40), ("Permission", 275)] for role in roles: colls.append((role, 75)) self.addReportColumns(colls) i = 0 for perm in perms: self.addReportItems( *( i, ( (perm["acquire"] == "CHECKED" and "*" or "", perm["name"]) + tuple(map(lambda x: x["checked"] == "CHECKED" and "*" or "", perm["roles"])) ), ) ) i = i + 1 self.pastelise()
def refreshCtrl(self): ListCtrlView.refreshCtrl(self) errLogNode = self.model.transport try: entries = errLogNode.getResource().getLogEntries() except xmlrpclib.Fault, error: wx.LogError(Utils.html2txt(error.faultString))
def refreshCtrl(self): wx.BeginBusyCursor() try: ListCtrlView.refreshCtrl(self) i = 0 self.listResultIdxs = [] for mod in self.results.keys(): for result in self.results[mod]: self.listResultIdxs.append((mod, result)) i = self.addReportItems(i, (os.path.basename(mod), `result[0]`, `result[1]`, result[2].strip()) ) self.model.editor.statusBar.setHint(_('%d matches of "%s".')%(i, self.findPattern)) self.pastelise() finally: wx.EndBusyCursor()
def refreshCtrl(self): ListCtrlView.refreshCtrl(self) try: self.times = self.readTimes() except Explorer.TransportLoadError: self.times = [] #fn = self.getTTVFilename() #if not path.exists(fn): open(fn, 'w') i = 0 modSort = self.model.modules.keys() modSort.sort() for start, end, desc in self.times: i = self.addReportItems(i, (self.getTimeStr(start), end and self.getTimeStr(end) or '', desc)) self.pastelise()
def refreshCtrl(self): wx.BeginBusyCursor() try: ListCtrlView.refreshCtrl(self) i = 0 self.listResultIdxs = [] for mod in self.results.keys(): for result in self.results[mod]: self.listResultIdxs.append((mod, result)) i = self.addReportItems( i, (os.path.basename(mod), ` result[0] `, ` result[1] `, result[2].strip())) self.model.editor.statusBar.setHint( _('%d matches of "%s".') % (i, self.findPattern)) self.pastelise() finally: wx.EndBusyCursor()
def refreshCtrl(self): ListCtrlView.refreshCtrl(self) try: self.times = self.readTimes() except Explorer.TransportLoadError: self.times = [] #fn = self.getTTVFilename() #if not path.exists(fn): open(fn, 'w') i = 0 modSort = self.model.modules.keys() modSort.sort() for start, end, desc in self.times: i = self.addReportItems(i, (self.getTimeStr(start), end and self.getTimeStr(end) or '', desc) ) self.pastelise()
def refreshCtrl(self): ListCtrlView.refreshCtrl(self) perms = self.model.transport.getPermissions() roles = self.model.transport.getRoles() colls = [('Acquired', 40), ('Permission', 275)] for role in roles: colls.append( (role, 75) ) self.addReportColumns( colls ) i = 0 for perm in perms: self.addReportItems(*(i, ((perm['acquire'] == 'CHECKED' and '*' or '', perm['name']) + tuple(map( lambda x: x['checked'] == 'CHECKED' and '*' or '', perm['roles'])) ))) i = i + 1 self.pastelise()
def refreshCtrl(self): ListCtrlView.refreshCtrl(self) perms = self.model.transport.getPermissions() roles = self.model.transport.getRoles() colls = [('Acquired', 40), ('Permission', 275)] for role in roles: colls.append((role, 75)) self.addReportColumns(colls) i = 0 for perm in perms: self.addReportItems( *(i, ((perm['acquire'] == 'CHECKED' and '*' or '', perm['name']) + tuple( map(lambda x: x['checked'] == 'CHECKED' and '*' or '', perm['roles']))))) i = i + 1 self.pastelise()