def factory_produce(self, collection_mgr, item_dict): """ Return a Distro forged from item_dict """ new_image = image.Image(collection_mgr) new_image.from_dict(item_dict) return new_image
def factory_produce(self, api, item_dict): """ Return a Distro forged from item_dict """ new_image = image.Image(api) new_image.from_dict(item_dict) return new_image
def new_image(self, is_subobject=False): self.log("new_image", [is_subobject]) return image.Image(self._collection_mgr, is_subobject=is_subobject)