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?


_______________________________________________
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to