summaryrefslogtreecommitdiffstats
path: root/cobbler/serializable.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-05-08 10:22:09 -0400
committerJim Meyering <jim@meyering.net>2006-05-08 10:22:09 -0400
commit643cf0d5bb69f2933cc88f03ccf288ed0eb52e42 (patch)
treeaea2d041aed77e96ff5c890ad0216c98fc0d42bd /cobbler/serializable.py
parentfc086c72640c3f8f51f9a07b76387647fb683025 (diff)
downloadthird_party-cobbler-643cf0d5bb69f2933cc88f03ccf288ed0eb52e42.tar.gz
third_party-cobbler-643cf0d5bb69f2933cc88f03ccf288ed0eb52e42.tar.xz
third_party-cobbler-643cf0d5bb69f2933cc88f03ccf288ed0eb52e42.zip
Unit tests pass again.
Diffstat (limited to 'cobbler/serializable.py')
-rw-r--r--cobbler/serializable.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/cobbler/serializable.py b/cobbler/serializable.py
index 7daa81a..0a23283 100644
--- a/cobbler/serializable.py
+++ b/cobbler/serializable.py
@@ -1,13 +1,27 @@
-import exceptions
+"""
+Serializable interface, for documentation purposes
+
+Michael DeHaan <mdehaan@redhat.com>
+"""
class Serializable:
def filename(self):
+ """
+ Return the full path to the config file this object uses.
+ """
return None
def from_datastruct(self,datastruct):
+ """
+ Return an object constructed with data from datastruct
+ """
raise exceptions.NotImplementedError
def to_datastruct(self):
+ """
+ Return hash/array/scalar reprentation of self.
+ This function must be the inverse of from_datastruct.
+ """
raise exceptions.NotImplementedError