예제 #1
0
파일: tree.py 프로젝트: billyoc/MRI
 def appendChild(self, node):
     if not node.getParent():
         node.set_parent(node)
         self.children.append(node)
         try:
             self.data_model.changed(ChangeType.NodeInserted, self, (node,))
         except Exception as e:
             print(e)
     else:
         e = IllegalArgumentException()
         e.ArgumentPosition = 0
         raise e
예제 #2
0
파일: tree.py 프로젝트: mattwilsoncp/MRI
 def appendChild(self, node):
     if not node.getParent():
         node.set_parent(node)
         self.children.append(node)
         try:
             self.data_model.changed(ChangeType.NodeInserted, self,
                                     (node, ))
         except Exception as e:
             print(e)
     else:
         e = IllegalArgumentException()
         e.ArgumentPosition = 0
         raise e
예제 #3
0
파일: wizard.py 프로젝트: Vman45/gDriveOOo
 def _getIllegalArgumentException(self, position, code):
     e = IllegalArgumentException()
     e.ArgumentPosition = position
     e.Message = getMessage(self.ctx, code)
     e.Context = self
     return e