[Zope-dev] Overriding traversal

Andy andy@agmweb.ca
Tue, 20 Mar 2001 19:28:21 -0800


Actually just notice VirtualHostMonster does the same thing our quick hack
does:

        if name in ('manage_main', 'manage_workspace'):
            return self.manage_main

Hmm. I guess using before_ or after_traversve hooks would be better than
overriding traverse.

----- Original Message -----
From: "Andy McKay" <andym@ActiveState.com>
To: <zope-dev@zope.org>
Sent: Tuesday, March 20, 2001 6:01 PM
Subject: [Zope-dev] Overriding traversal


> 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.
>
>
>
>
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
>