1. I need to track changes to particular attributes of an object in a python based product. 2. I redefine __setattr__ to perform the necessary operations. def __setattr__(self, name, value): "some nice comments" #pre-processing #store the specified attribute self.__dict__[name] = value self._p_changed = 1 #post-processing 3. All works fine until I need to access the aq_parent attribute. 4. When I attempt use self.aq_parent, I get an AttributeError exception. Any ideas? -- Brian _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
Brian Oliver writes:
... Share reported for "__getattr__" (--> mailing list archives) that the self passed in is not acquisition wrapped. Maybe, this is also the case for its companion "__setattr__"...
Dieter
participants (2)
-
Brian Oliver -
Dieter Maurer