On 10-mei-2009, at 17:24, mdipierro wrote:

> No because
>
>              ('/$c/$f', '/fubar/$c/$f'),
>
> reads
>
>              ('/(?P<c>\w+)/((?P<f>\w+)', '/fubar/\g<c>/\g<f>'),

Pardon my ignorance, but why can't this rewrite rule match with:
/default/data/tables? The way I read it:

     /default      -> /(?P<c>\w+)
     /data/tables  -> /(?P<f>\w+)

Which should result in:

     /fubar/\g<c>/\g<f> -> /fubar/default/data/tables

However a request to /default/data/tables with the above rewrite rule in
routes.py present results in: Invalid request

BTW could someone reproduce the other (first) issue I described? (URL()
does not honor routes.py)

> Do not do
>
>> routes_out = [(x, y) for (y, x) in routes_in]

Okay.

-- 
Guido Kollerie


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to