Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 def new_image(self, is_subobject=False):
     self.log("new_image", [is_subobject])
     return image.Image(self._collection_mgr, is_subobject=is_subobject)