From 4a7d0c46c7dd4ab46a4850bd462729d1ea6be497 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 17 Oct 2007 18:11:51 -0400 Subject: 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. --- cobbler/api.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cobbler/api.py') diff --git a/cobbler/api.py b/cobbler/api.py index 955c41d..2a51c1a 100644 --- a/cobbler/api.py +++ b/cobbler/api.py @@ -226,8 +226,11 @@ class BootAPI: """ return self._config.deserialize() - ## FIXME: would be nice to have functions to just deserialize - ## certain collections for efficiency in WUI calls. + def deserialize_raw(self,collection_name): + """ + Get the collection back just as raw data. + """ + return self._config.deserialize_raw(collection_name) if __name__ == "__main__": api = BootAPI() -- cgit