Re: [Zope-dev] Execution context

2004-03-05 Thread Chris Withers
Garito wrote: 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) Ew... some sick part of me want to ask WHY you're doing thing... Then again, some people like beating each

[Zope-dev] Execution context

2004-03-04 Thread Garito
Hi all Finally I solve my problem with Tres Seaver's help (THANK YOU) I overridethe __bobo_traverse__ with: def __bobo_traverse__(self, Request, Name):import sysif sys._getframe(1).f_code.co_name == "traverse":return getattr(self, Name)else:return self.Propiedad(Name) self.Propiedad is

[Zope-dev] Execution context

2004-03-02 Thread Garito
Hi all Can I know the execution contexto of an object? I would like to know if the object is call by ZMI or DTML or Page Templates etc is it posible? Thank you ___ Zope-Dev maillist - [EMAIL PROTECTED]