[Zope-CMF] Re: Inconstancy with CA traversal
Dylan Jay
gmane at dylanjay.com
Thu Jun 26 00:55:42 EDT 2008
Laurence Rowe wrote:
> 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.
Do I raise this as a bug against CMF?
More information about the Zope-CMF
mailing list