コード例 #1
0
ファイル: attribute.py プロジェクト: jloehel/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)
コード例 #2
0
ファイル: attribute.py プロジェクト: 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)
コード例 #3
0
ファイル: command.py プロジェクト: jloehel/xii
 def __init__(self, args, tpls, store):
     Entity.__init__(self, self.name[0], store, parent=None, templates=tpls)
     self._args = args
     self._id = None
コード例 #4
0
ファイル: component.py プロジェクト: jloehel/xii
 def __init__(self, name, command, tpls={}):
     Entity.__init__(self, name, parent=command, templates=tpls)
コード例 #5
0
ファイル: component.py プロジェクト: jloehel/xii
 def validate(self):
     Entity.validate(self, self.required_attributes)
コード例 #6
0
ファイル: component.py プロジェクト: xii/xii
 def __init__(self, name, command, tpls={}):
     self._meta = {}
     Entity.__init__(self, name, parent=command, templates=tpls)
コード例 #7
0
ファイル: component.py プロジェクト: xii/xii
 def validate(self):
     Entity.validate(self, self.required_attributes)
コード例 #8
0
 def __init__(self, name, command):
     Entity.__init__(self, name, parent=command)
コード例 #9
0
 def __init__(self, args, store):
     Entity.__init__(self, self.name[0], store, parent=None)
     self._args = args
     self._create_components()
コード例 #10
0
ファイル: command.py プロジェクト: xii/xii
 def __init__(self, args, tpls, store):
     Entity.__init__(self, self.name, store, parent=None, templates=tpls)
     self._args = args
     self._id = None
コード例 #11
0
 def __init__(self, component):
     Entity.__init__(self, name=self.atype,
                           parent=component)