[Zope-dev] Overriding traversal

Andy McKay andym@ActiveState.com
Tue, 20 Mar 2001 18:01:37 -0800


We have a SQL method that works quite nicely by messing around with
__bobo_traverse__ meaning we can pass in long URL's as arguments such as
/SQLMethod/a/b/c, /a/b/c is an argument into ZSQL. This is extremely useful
to use. We do this by overiding __bobo_traverse__.

The problem occurs when we mess around with the management interface it
seems things such as manage_workspace can't be returned by using the usual
suspects and I get permission error since <guess>BaseRequest cant seem to
get the correct roles</guess> What would be really nice is if I can call
__bobo_traverse__ and do my thing and if it all goes wrong, what the hey I
just return with no change.

This post could go on for a while, but I dont want to bore you. Any advice?

Thanks in advance.

--
  Andy McKay.