conga/luci/site/luci/Extensions cluster_adapte ...
CVSROOT: /cvs/cluster
Module name: conga
Changes by: shuennek at sourceware.org 2006-08-10 23:06:43
Modified files:
luci/site/luci/Extensions: cluster_adapters.py
Log message:
luci/site/luci/Extensions/cluster_adapters.py +10 -5
@@ -979,7 +979,7 @@ rc_map = {} if parent != None: rc_map['parent'] = parent - rc_map['resource_name'] = child.getName() + rc_map['name'] = child.getName() if child.isRefObject() == True: rc_map['ref_object'] = True rc_map['type'] = child.getObj().getResourceType()
@@ -987,13 +987,18 @@ rc_map['type'] = child.getResourceType() rc_map['indent_ctr'] = indent_ctr + indent_str = '_' + i = indent_ctr + while i>0: + indent_str += '__' + i -= 1 + rc_map['indent_str'] = indent_str + #Note: Final version needs all resource attrs - attrs = child.getAttributes() - attr_keys = attrs.keys() - for key in attr_keys: - rc_map[key] = attrs[key] + rc_map['attrs'] = child.getAttributes() new_indent_ctr = indent_ctr + 1 + resource_list.append(rc_map) kids = child.getChildren() for kid in kids: