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
def new_file(self, is_subobject=False): self.log("new_file", [is_subobject]) return item_file.File(self._collection_mgr, is_subobject=is_subobject)
def factory_produce(self, config, seed_data): """ Return a File forged from seed_data """ return file.File(config).from_datastruct(seed_data)