summaryrefslogtreecommitdiffstats
path: root/cobbler/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/config.py')
-rw-r--r--cobbler/config.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/cobbler/config.py b/cobbler/config.py
index ee41ea5..658c8ce 100644
--- a/cobbler/config.py
+++ b/cobbler/config.py
@@ -162,6 +162,20 @@ class Config:
return False
return True
+ def serialize_item(self,collection,item):
+ """
+ Save item in the collection, resaving the whole collection if needed,
+ but ideally just saving the item.
+ """
+ return serializer.serialize_item(collection,item)
+
+
+ def serialize_delete(self,collection,item):
+ """
+ Erase item from a storage file, if neccessary rewritting the file.
+ """
+ return serializer.serialize_delete(collection,item)
+
def deserialize(self):
"""
Load the object hierachy from disk, using the filenames referenced in each object.