def factory_produce(self, api, item_dict): """ Return a File forged from item_dict """ new_file = file.File(api) new_file.from_dict(item_dict) return new_file
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 file.File(self._collection_mgr, is_subobject=is_subobject)