[Zope-dev] Execution context

Chris Withers lists at simplistix.co.uk
Fri Mar 5 06:06:42 EST 2004


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 other with sticks for fun, other 
people program in Perl, each to their own I guess...

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk




More information about the Zope-Dev mailing list