diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2006-05-08 11:42:41 -0400 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-05-08 11:42:41 -0400 |
commit | 038a4383ccb6230f927960a34288c5cf6fbd3455 (patch) | |
tree | c7264ec2a325ed8d74c260b31111df934a87960f /cobbler/config.py | |
parent | fde48f2d1dc6412a0e9e483da8d197fd8c5d8e53 (diff) | |
download | cobbler-038a4383ccb6230f927960a34288c5cf6fbd3455.tar.gz cobbler-038a4383ccb6230f927960a34288c5cf6fbd3455.tar.xz cobbler-038a4383ccb6230f927960a34288c5cf6fbd3455.zip |
More pychecker. More comments.
Diffstat (limited to 'cobbler/config.py')
-rw-r--r-- | cobbler/config.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/cobbler/config.py b/cobbler/config.py index 0627abcc..cf259a29 100644 --- a/cobbler/config.py +++ b/cobbler/config.py @@ -85,6 +85,7 @@ class Config: """ for x in self._classes: x.clear() + return True def file_check(self): """ @@ -93,21 +94,28 @@ class Config: """ for x in self._classes: if not os.path.exists(x.filename()): - serializer.serialize(x) + if not serializer.serialize(x): + return False + return True + def serialize(self): """ Save the object hierarchy to disk, using the filenames referenced in each object. """ for x in self._classes: - serializer.serialize(x) + if not serializer.serialize(x): + return False + return True def deserialize(self): """ Load the object hierachy from disk, using the filenames referenced in each object. """ for x in self._classes: - serializer.deserialize(x) + if not serializer.deserialize(x): + return False + return True |