summaryrefslogtreecommitdiffstats
path: root/cobbler/config.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-10-15 11:01:19 -0400
committerMichael DeHaan <mdehaan@redhat.com>2007-10-15 11:01:19 -0400
commit096b9e109e2f8a954af25b8f5241d5f7fd089755 (patch)
tree57b70179eed0b5b3b65a8f78d3fb5ad8093496d5 /cobbler/config.py
parent2fd4775c68160a8617fff5f7015542bf8c1501e5 (diff)
downloadthird_party-cobbler-096b9e109e2f8a954af25b8f5241d5f7fd089755.tar.gz
third_party-cobbler-096b9e109e2f8a954af25b8f5241d5f7fd089755.tar.xz
third_party-cobbler-096b9e109e2f8a954af25b8f5241d5f7fd089755.zip
Work on an shelve-based external storage, for performance testing. Sqlite
is just as likely at this point.
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.