Example #1
0
    def __init__(self, component, tpls):
        """Initialize the attribute.

        Do not forget to call Attribute.__init__() on a custom constructor

        Args:
            component: the parent component which owns the attribute instance
            tpls: templates assosiated with this attribute
        """
        Entity.__init__(self,
                        name=self.atype,
                        parent=component,
                        templates=tpls)
Example #2
0
File: attribute.py Project: xii/xii
    def __init__(self, component, tpls):
        """Initialize the attribute.

        Do not forget to call Attribute.__init__() on a custom constructor

        Args:
            component: the parent component which owns the attribute instance
            tpls: templates assosiated with this attribute
        """
        Entity.__init__(self,
                        name=self.atype,
                        parent=component,
                        templates=tpls)
Example #3
0
 def __init__(self, args, tpls, store):
     Entity.__init__(self, self.name[0], store, parent=None, templates=tpls)
     self._args = args
     self._id = None
Example #4
0
 def __init__(self, name, command, tpls={}):
     Entity.__init__(self, name, parent=command, templates=tpls)
Example #5
0
 def validate(self):
     Entity.validate(self, self.required_attributes)
Example #6
0
File: component.py Project: xii/xii
 def __init__(self, name, command, tpls={}):
     self._meta = {}
     Entity.__init__(self, name, parent=command, templates=tpls)
Example #7
0
File: component.py Project: xii/xii
 def validate(self):
     Entity.validate(self, self.required_attributes)
Example #8
0
 def __init__(self, name, command):
     Entity.__init__(self, name, parent=command)
Example #9
0
 def __init__(self, args, store):
     Entity.__init__(self, self.name[0], store, parent=None)
     self._args = args
     self._create_components()
Example #10
0
File: command.py Project: xii/xii
 def __init__(self, args, tpls, store):
     Entity.__init__(self, self.name, store, parent=None, templates=tpls)
     self._args = args
     self._id = None
Example #11
0
 def __init__(self, component):
     Entity.__init__(self, name=self.atype,
                           parent=component)