[Zope3-Users] Persistent obj with attr hooks
Jim Pharis
binbrain at gmail.com
Thu Jul 23 13:41:57 EDT 2009
I have a class that inherits from Persistent but also needs to hook into
setattr and getattribute.
class Test(Persistent)
...
def __setattr__(self, name, val)
def __getattribute__(self, name)
Before when this class inherited from object the __setattr__ and
__getattribute__ calls were simple and straight forward with
object.__getattribute__(name). However, now that I inherent from Persistent,
the equivalent Persistent.__getattribute__ and Persisent.__setattr__ don't
seem to set/get my attributes.
Can someone help me out. What call should I be using instead?
- Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20090723/4ec6c67f/attachment.html
More information about the Zope3-users
mailing list