durusmail: quixote-users: Illegal Python Names cookbook recipe
Illegal Python Names cookbook recipe
2004-04-05
2004-04-05
2004-04-05
Bug fixes (was: Illegal Python Names cookbook recipe)
2004-04-07
2004-04-07
Bug fixes (was: Illegal Python Names cookbookrecipe)
2004-04-07
Patches for .7a3
2004-04-07
Re: Patches for .7a3
2004-04-08
StaticFile is broken (Quixote-0.7a3, scgi-1.2a2, Apache/1.3.27, FreeBSD 4.7)
2004-04-08
Re: Patches for .7a3
2004-04-21
2004-04-21
2004-04-06
2004-04-06
2004-04-06
2004-04-06
2004-04-06
2004-04-06
2004-04-06
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
Re: Illegal Python Names cookbook recipe
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-08
2004-04-07
2004-04-07
2004-04-07
2004-04-06
2004-04-05
2004-04-05
2004-04-05
Re: R: [Quixote-users] Illegal Python Names cookbook recipe
2004-04-06
Illegal Python Names cookbook recipe
Neil Schemenauer
2004-04-06
[Respecting Mail-followup-to header]

On Tue, Apr 06, 2004 at 03:42:55PM -0400, A.M. Kuchling wrote:
> On Tue, Apr 06, 2004 at 03:38:03PM -0400, John Belmonte wrote:
> > I'd prefer that the mechanics of Quixote remain simple.  It's easy
> > enough to build the mapping function on top of what already exists.
>
> +1.  It's regrettable that people who like to use '-' in their URLs have to
> pay a penalty, but I don't think it's really worth fixing.

The '-' character is not the only problem.  More than once I've
wanted to generate a file and have a proper extension on the URL.
This patch makes it easy to do.  E.g.

    _q_exports = [('stylesheet.css', 'stylesheet_css')]

    def stylesheet_css(request):
        ...


There's a tradeoff between making Quixote more complicated and
making applications more complicated.  I think this problem is just
common enough to have support in Quixote.

The other annoying problem with Quixote's traversal is when you
want to dynamically create namespaces.  If you are using a class
then a property works well but at the module level you need to use
_q_lookup().  Unfortunately, I don't have any idea on how to fix it.


  Neil


reply