durusmail: quixote-users: request.redirects in _q_lookup
request.redirects in _q_lookup
2003-06-07
request.redirects in _q_lookup
Neil Schemenauer
2003-06-07
On Sat, Jun 07, 2003 at 04:56:03PM -0500, Jason Sibre wrote:
> I'm kinda new to this, so I may not have done it in the most Quixotic way,
> but it feels right, and it works well.

That's the way we've implemented this feature.  It felt right to us too.
Exceptions are a handy way of aborting the traversal process and
returning some other page.

Mark, your problem is due to the fact that _q_lookup gets called for
a component path.  For example, if someone is trying to access
/some/really/deep/path then your _q_lookup function will first get
called with component = "some".  Quixote will then try to traverse into
the object that your _q_lookup function returned, looking for the name
"really".  Since the object you returned doesn't have a _q_exports list
you get an error.

HTH,

  Neil

reply