diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-10-17 18:11:51 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2007-10-17 18:11:51 -0400 |
commit | 4a7d0c46c7dd4ab46a4850bd462729d1ea6be497 (patch) | |
tree | 918f0f0b66de6cda083d8dd3d888fd7589c24cba /cobbler/serializer.py | |
parent | 940a0bbbe44db52c06514423823f865a6c579e3a (diff) | |
download | third_party-cobbler-4a7d0c46c7dd4ab46a4850bd462729d1ea6be497.tar.gz third_party-cobbler-4a7d0c46c7dd4ab46a4850bd462729d1ea6be497.tar.xz third_party-cobbler-4a7d0c46c7dd4ab46a4850bd462729d1ea6be497.zip |
Various changes to allow for increased performance in the WebUI and in saving state, plus
a fix to import that keeps from creating extra yum repo entries for various distros.
Diffstat (limited to 'cobbler/serializer.py')
-rw-r--r-- | cobbler/serializer.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cobbler/serializer.py b/cobbler/serializer.py index 2aa5d87..f7904c1 100644 --- a/cobbler/serializer.py +++ b/cobbler/serializer.py @@ -42,7 +42,7 @@ def serialize_item(collection, item): storage_module = __get_storage_module(collection.collection_type()) save_fn = getattr(storage_module, "serialize_item", None) if save_fn is None: - # print "DEBUG: full serializer" + # print "DEBUG: WARNING: full serializer" return storage_module.serialize(collection) else: # print "DEBUG: partial serializer" @@ -66,6 +66,10 @@ def deserialize(obj,topological=False): storage_module = __get_storage_module(obj.collection_type()) return storage_module.deserialize(obj,topological) +def deserialize_raw(collection_type): + storage_module = __get_storage_module(collection_type) + return storage_module.deserialize_raw(collection_type) + def __get_storage_module(collection_type): |