示例#1
0
文件: images.py 项目: tpw56j/cobbler
 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
示例#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
示例#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)