Getting Unauthorized from __bobo_traverse__.
Don't know if this helps, http://lists.zope.org/pipermail/zope-dev/2000-December/008524.html x.unrestrictedTraverse(('','y','z')) _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
James Johnson wrote:
Don't know if this helps,
http://lists.zope.org/pipermail/zope-dev/2000-December/008524.html
Gosh, I wrote that one :-) I recall that ZCatalog was changed to use unrestrictedTraverse instead of restrictedTraverse for Zope 2.3...
x.unrestrictedTraverse(('','y','z'))
... which you can't use from restricted things like (Script) Pythons and DTML Methods. So, the answer lies in External Methods and Python Products. If only I could remember what the question was... -- Steve Alexander Software Engineer Cat-Box limited
Steve Alexander wrote:
... which you can't use from restricted things like (Script) Pythons and DTML Methods. So, the answer lies in External Methods and Python Products. If only I could remember what the question was...
There was a bug, fixed in 2.4.1, with restrictedTraverse across __bobo_traverse__ when the security is controlled by the container rather than the target object. If you grab OFS/Traversal.py (I think) from the CVS root, it should fix the problem. Cheers, Evan @ Zope
[Evan Simpson] | If you grab OFS/Traversal.py (I think) from the CVS root, it should | fix the problem. *scabbers off to the CVS* Thanks! :)
On Wed, 2001-09-12 at 22:45, Erik Enge wrote:
[Evan Simpson]
| If you grab OFS/Traversal.py (I think) from the CVS root, it should | fix the problem.
*scabbers off to the CVS* Thanks! :)
Eeew! I hope you meant 'scampers', as I have horrific visions of what 'scabbering off' would look like... Michael.
[Michael R. Bernstein] | On Wed, 2001-09-12 at 22:45, Erik Enge wrote: | | > *scabbers off to the CVS* Thanks! :) | | Eeew! | | I hope you meant 'scampers', as I have horrific visions of what | 'scabbering off' would look like... Hehe! Oops... Yeah, that's what I meant. Ever since I started learing French my English has started to suck. Maybe it's only mental. ;-)
participants (5)
-
Erik Enge -
Evan Simpson -
James Johnson -
Michael R. Bernstein -
Steve Alexander