def onUrl(self,evt): urlValue = evt.GetString() codeRefs = urlValue.split(',') codeValue = self.theCodes[(int(codeRefs[0]),int(codeRefs[1]))] b = Borg() codeObjt = b.dbProxy.dimensionObject(codeValue,'code') dlg = CodeDialog(self,DialogClassParameters(armid.CODE_ID,'View Code')) dlg.load(codeObjt) dlg.ShowModal()
def displayCode(self,fromIdx,toIdx): try: cmValue = self.theCodes[(fromIdx,toIdx)] b = Borg() cmObjt = b.dbProxy.dimensionObject(cmValue,'code') dlg = CodeDialog(self,DialogClassParameters(CODE_ID,'View Code')) dlg.load(cmObjt) dlg.ShowModal() except KeyError: return