On Sat, Apr 11, 2009 at 12:14 AM, mdipierro <mdipie...@cs.depaul.edu> wrote:
> You can put this
> routes_out = map(lambda x:(x[1], x[0]), routes_in)
>
> yourself in routes. It should not be the default because if people use
> regex in routes, this way of doing reversed mapping would not work.

Yes, I have this code in apps that doesn't use regex. But my last
email I suggest to add it in routes.py like a *comment*, emphazising
that it can be used only in non-regex casees (and then developer only
have to uncomment the line, like other web2py code (auth, crud etc.)
to use that functionality).

-- 
 Álvaro Justen
 Peta5 - Telecomunicações e Software Livre
 21 3021-6001 / 9898-0141
 http://www.peta5.com.br/

--~--~---------~--~----~------------~-------~--~----~
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