Hi, Well if it's invalid i won't bother with it but say:
- i forgot a self - that is true - if added it does NOT loop infinitely - its not my example its taken from python cookbook - it works with new style objects - __getattribute__ does something different But frankly i was only trying to understand better what you want to do and be helpful - which obviously is neither needed nor wanted. Andreas > Sorry, invalid answer. That's what zope.proxy is designed for and I am > trying to get it working (unlikely it has no documentation and the > unittest don't give me much insight). In addition: your code won't work > since you must refer to self.obj not 'obj' within __getattr__. And > using self.obj will lead to an infinite recursion. I also think that > __getattr__() is not used by new-styles classes. Instead you need to > override __getattribute__(). > > Andreas
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )