示例#1
0
 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
示例#2
0
文件: files.py 项目: tpw56j/cobbler
 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
示例#3
0
 def new_file(self, is_subobject=False):
     self.log("new_file", [is_subobject])
     return file.File(self._collection_mgr, is_subobject=is_subobject)