Beispiel #1
0
 def factory_produce(self, collection_mgr, item_dict):
     """
     Return a Distro forged from item_dict
     """
     new_system = system.System(collection_mgr)
     new_system.from_dict(item_dict)
     return new_system
Beispiel #2
0
    def factory_produce(self, api, item_dict):
        """
        Return a Distro forged from item_dict

        :param api: TODO
        :param item_dict: TODO
        :returns: TODO
        """
        new_system = system.System(api)
        new_system.from_dict(item_dict)
        return new_system
Beispiel #3
0
 def new_system(self, is_subobject=False):
     self.log("new_system", [is_subobject])
     return system.System(self._collection_mgr, is_subobject=is_subobject)