26 Jun
2001
26 Jun
'01
3:40 a.m.
Johnson, Michael (MIJOHNSO) writes:
... "getattr" does not work for attributes of inherited ZClasses ...
"getattr" does no special things for folderish items. It simply accesses the attributes of an object in case, you can not use the attribute access syntax object.attribute because either the attribute name does not follow Python name syntax or is not constant. Furthermore, it does not care, whether the attribute is defined in the objects class itself or in an inherited class. Thus, "getattr(self,your_attribute)" should work. If not, something else is wrong (there is not attribute with name given be "your_attribute"). Dieter