[Zope-CMF] Re: Inconstancy with CA traversal
Laurence Rowe
l at lrowe.co.uk
Wed Jun 25 05:42:28 EDT 2008
Laurence Rowe wrote:
> To fix this we need to add a __bobo__traverse__ method to Skinnable that
> looks up objects in the order:
>
> 1. getattr(aq_base(obj), name), but excluding skin objects
>
> 2. views
>
> 3. getattr(aq_base(obj), name), including skin objects
>
> 4. getattr(obj, name)
Hmm. It looks as if the __bobo_traverse__ method will require access to
the `restricted` argument to unrestrictedTraverse. I can't see any way
to access this other than:
sys._getframe(1).f_locals['restricted']
Which is more than a little ugly.
Laurence
More information about the Zope-CMF
mailing list