Esempio n. 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)
Esempio n. 2
0
File: attribute.py Progetto: 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)
Esempio n. 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
Esempio n. 4
0
 def __init__(self, name, command, tpls={}):
     Entity.__init__(self, name, parent=command, templates=tpls)
Esempio n. 5
0
 def validate(self):
     Entity.validate(self, self.required_attributes)
Esempio n. 6
0
File: component.py Progetto: xii/xii
 def __init__(self, name, command, tpls={}):
     self._meta = {}
     Entity.__init__(self, name, parent=command, templates=tpls)
Esempio n. 7
0
File: component.py Progetto: xii/xii
 def validate(self):
     Entity.validate(self, self.required_attributes)
Esempio n. 8
0
 def __init__(self, name, command):
     Entity.__init__(self, name, parent=command)
Esempio n. 9
0
 def __init__(self, args, store):
     Entity.__init__(self, self.name[0], store, parent=None)
     self._args = args
     self._create_components()
Esempio n. 10
0
File: command.py Progetto: xii/xii
 def __init__(self, args, tpls, store):
     Entity.__init__(self, self.name, store, parent=None, templates=tpls)
     self._args = args
     self._id = None
Esempio n. 11
0
 def __init__(self, component):
     Entity.__init__(self, name=self.atype,
                           parent=component)