Ejemplo n.º 1
0
 def factory_produce(self, collection_mgr, item_dict):
     """
     Return a Package forged from item_dict
     """
     new_package = package.Package(collection_mgr)
     new_package.from_dict(item_dict)
     return new_package
Ejemplo n.º 2
0
 def new_package(self, is_subobject=False):
     self.log("new_package", [is_subobject])
     return item_package.Package(self._collection_mgr, is_subobject=is_subobject)
Ejemplo n.º 3
0
 def factory_produce(self, config, seed_data):
     """
     Return a Package forged from seed_data
     """
     return package.Package(config).from_datastruct(seed_data)