durusmail: quixote-users: Use of _q_index in instance methods
Use of _q_index in instance methods
2004-08-03
2004-08-03
2004-08-05
2004-08-03
2004-08-04
2004-08-04
2004-08-05
2004-08-05
Use of _q_index in instance methods
A.M. Kuchling
2004-08-05
On Thu, Aug 05, 2004 at 08:07:22AM -0400, Steven Zatz wrote:
> pointed out that there is a setting called FIX_TRAILING_SLASH.  What I
> don't really understand is why Quixote can find functions in the current
> namespace that don't have a trailing slash in the URL but can't find in the
> current namespace a non-callable instance's _q_index method unless there is
> a trailing slash in the URL.

See the _traverse_url function in quixote.publish for the logic.
(Part of the reason for Quixote being small is so that you can read
the code to figure out what's going on.)  _q_index is appended to the
path if there's a trailing '/', and then the path is traversed looking
for something that's either a string or a callable.

--amk

reply