summaryrefslogtreecommitdiffstats
path: root/cobbler/item_distro.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-06-12 15:14:43 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-06-12 15:14:43 -0400
commit297f85a192483a61d921a35b6f7938d3c52e466f (patch)
treeb5362c5c9d6203512d4804358a36c1d2e9b3ef93 /cobbler/item_distro.py
parentd3dfa949cba586ac3226486f763cba5140a90be7 (diff)
downloadthird_party-cobbler-297f85a192483a61d921a35b6f7938d3c52e466f.tar.gz
third_party-cobbler-297f85a192483a61d921a35b6f7938d3c52e466f.tar.xz
third_party-cobbler-297f85a192483a61d921a35b6f7938d3c52e466f.zip
Add code for generation of object downlinks during config parsing.
Reasonably efficient, and allows for faster display/searching, with the ability to do arbitrary nesting for config display when we have inheritable profiles implemented.
Diffstat (limited to 'cobbler/item_distro.py')
-rw-r--r--cobbler/item_distro.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cobbler/item_distro.py b/cobbler/item_distro.py
index b36b9d5..a6de931 100644
--- a/cobbler/item_distro.py
+++ b/cobbler/item_distro.py
@@ -49,7 +49,6 @@ class Distro(item.Item):
"""
return None
-
def from_datastruct(self,seed_data):
"""
Modify this object to take on values in seed_data
@@ -175,5 +174,8 @@ class Distro(item.Item):
buf = buf + _("architecture : %s\n") % self.arch
buf = buf + _("ks metadata : %s\n") % self.ks_meta
buf = buf + _("breed : %s\n") % self.breed
+ # FIXME: temporary
+ buf = buf + _("children : %s\n") % self.get_children()
+ buf = buf + _("descendants : %s\n") % self.get_descendants()
return buf