1.1 --- a/simplify/simplified/data.py Tue Sep 04 01:06:47 2007 +0200
1.2 +++ b/simplify/simplified/data.py Thu Sep 06 01:18:26 2007 +0200
1.3 @@ -44,6 +44,24 @@
1.4
1.5 # Utility methods.
1.6
1.7 + def get_visible_class_attributes(self):
1.8 +
1.9 + "Return a dictionary of visible class attributes."
1.10 +
1.11 + reverse_base_refs = self.base_refs
1.12 + reverse_base_refs.reverse()
1.13 +
1.14 + attributes = {}
1.15 +
1.16 + for base_defs in reverse_base_refs:
1.17 + for base_def in base_defs:
1.18 + attributes.update(base_def.type.get_visible_class_attributes())
1.19 +
1.20 + for name, defs in self.namespace.items():
1.21 + attributes[name] = self, defs
1.22 +
1.23 + return attributes
1.24 +
1.25 def get_instance_attribute_names(self):
1.26
1.27 "Return all attribute names used by the instances of this class."