[Zope-dev] Execution context
Garito
garito at sistes.net
Thu Mar 4 02:18:01 EST 2004
Hi all
Finally I solve my problem with Tres Seaver's help (THANK YOU)
I override the __bobo_traverse__ with:
def __bobo_traverse__(self, Request, Name):
import sys
if sys._getframe(1).f_code.co_name == "traverse":
return getattr(self, Name)
else:
return self.Propiedad(Name)
self.Propiedad is the fuction than neutralices (I call these mechanism Neutralization) the content of my object
When You executes ZMI sys._getframe(1).f_code_co_name returns traverse
Thanks again Tres Seaver!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope-dev/attachments/20040304/8d944f11/attachment.html
More information about the Zope-Dev
mailing list