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