On Tue, Feb 24, 2004 at 09:38:16AM +0100, Bud P. Bruegger wrote:
> Is it possible, to have the last path component (e.g. other in the examples
> from the manual below) be a function that returns a namespace? I know that
The standard way of doing this is _q_lookup() or _q_resolve(). e.g.
other = SomeObjectUI()
class SomeObjectUI:
def _q_index (self, request): # /q/other/
...
def foo (self, request): # /q/other/foo
...
I can't think of a use case for letting arbitrary callables return objects
that continue to be traversed. Please tell us what you're trying to
implement, and we can probably suggest a good way of doing it (or it can
provide a motivation for this change).
--amk