def onAddRelationship(self,evt):
   dlg = CodeRelationshipDialog(self)
   if (dlg.ShowModal() == armid.CODERELATIONSHIP_BUTTONADD_ID):
     idx = self.GetItemCount()
     fromName = dlg.fromName()
     toName = dlg.toName()
     rshipType = dlg.relationship()
     self.InsertStringItem(idx,fromName)
     self.SetStringItem(idx,1,rshipType)
     self.SetStringItem(idx,2,toName)
 def onAddRelationship(self,evt):
   personaName = self.personaCtrl.GetValue()
   dlg = CodeRelationshipDialog(self)
   if (dlg.ShowModal() == armid.CODERELATIONSHIP_BUTTONADD_ID):
     fromName = dlg.fromName()
     toName = dlg.toName()
     rshipType = dlg.relationship()
     b = Borg()
     b.dbProxy.addCodeRelationship(personaName,fromName,toName,rshipType)
     self.regenerateView(personaName)
   dlg.Destroy() 
 def onItemActivated(self,evt):
   fromName = self.GetItemText(self.theSelectedIdx)
   rType = self.GetItem(self.theSelectedIdx,1)
   toName = self.GetItem(self.theSelectedIdx,2)
   dlg = CodeRelationshipDialog(self,fromName,toName.GetText(),rType.GetText())
   if (dlg.ShowModal() == armid.CODERELATIONSHIP_BUTTONADD_ID):
     fromName = dlg.fromName()
     toName = dlg.toName()
     rshipType = dlg.relationship()
     self.SetStringItem(self.theSelectedIdx,0,fromName)
     self.SetStringItem(self.theSelectedIdx,1,rshipType)
     self.SetStringItem(self.theSelectedIdx,2,toName)
Exemple #4
0
 def onAddRelationship(self, evt):
     personaName = self.personaCtrl.GetValue()
     dlg = CodeRelationshipDialog(self)
     if (dlg.ShowModal() == CODERELATIONSHIP_BUTTONADD_ID):
         fromName = dlg.fromName()
         toName = dlg.toName()
         rshipType = dlg.relationship()
         b = Borg()
         b.dbProxy.addCodeRelationship(personaName, fromName, toName,
                                       rshipType)
         self.regenerateView(personaName)
     dlg.Destroy()
 def onAddRelationship(self, evt):
     dlg = CodeRelationshipDialog(self)
     if (dlg.ShowModal() == CODERELATIONSHIP_BUTTONADD_ID):
         idx = self.GetItemCount()
         fromName = dlg.fromName()
         toName = dlg.toName()
         rshipType = dlg.relationship()
         self.InsertStringItem(idx, fromName)
         self.SetStringItem(idx, 1, rshipType)
         self.SetStringItem(idx, 2, toName)
 def onItemActivated(self, evt):
     fromName = self.GetItemText(self.theSelectedIdx)
     rType = self.GetItem(self.theSelectedIdx, 1)
     toName = self.GetItem(self.theSelectedIdx, 2)
     dlg = CodeRelationshipDialog(self, fromName, toName.GetText(),
                                  rType.GetText())
     if (dlg.ShowModal() == CODERELATIONSHIP_BUTTONADD_ID):
         fromName = dlg.fromName()
         toName = dlg.toName()
         rshipType = dlg.relationship()
         self.SetStringItem(self.theSelectedIdx, 0, fromName)
         self.SetStringItem(self.theSelectedIdx, 1, rshipType)
         self.SetStringItem(self.theSelectedIdx, 2, toName)