Beispiel #1
0
 def __init__(self, *args, **kwargs):
     if not hasattr(self, '_module'):
         self._module = \
             api.add_module_from_descriptor(self._module_desc, auto_layout=True)
         # FIXME if constant, we can use args
         module_desc = self._module_desc
         for attr_name, value in kwargs.iteritems():
             self._process_attr_value(attr_name, value)
 def __init__(self, *args, **kwargs):
     if not hasattr(self, '_module'):
         self._module = \
             api.add_module_from_descriptor(self._module_desc)
         # FIXME if constant, we can use args
         module_desc = self._module_desc
         for attr_name, value in kwargs.iteritems():
             self._process_attr_value(attr_name, value)
Beispiel #3
0
 def init(self, *args, **kwargs):
     self.__dict__['module'] = \
         api.add_module_from_descriptor(module_desc)
 def init(self, *args, **kwargs):
     self.__dict__['module'] = \
         api.add_module_from_descriptor(module_desc)