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