Example #1
0
 def __init__(self, **data):
     """
     constructor of the object
     """
     Supernode.__init__(self, **data)
     #self.myFactory = str(self.__class__).split("'")[1]
     for (name, value) in data.items():
         if name in IComponent.names():
             setattr(self, name, value)
     if not hasattr(self, 'isTemplate'):
         self.isTemplate = False
     self.ikRevision = __version__
Example #2
0
 def __init__(self, **data):
     """
     constructor of the object
     """
     Supernode.__init__(self, **data)
     self.requirements = []
     refAttributeNames = getRefAttributeNames(Component)
     for (name, value) in data.items():
         if name in IComponent.names() and \
            name not in refAttributeNames:
             setattr(self, name, value)
     self.ikRevision = __version__