BTW... just to synchronize ourself, what the book gives as an example is

('/new_name/$anything', '/app/controller/function*/*$anything')

mind the */* part . This is the only safe way to do what people usually 
want to "translate", that is the app/c/f part, while leaving args and vars 
untouched. You can work around using something like you suggested, but you 
already faced what the developers faced: the utter and complete disaster in 
mapping what comes in .

Of course (if you think to the method a piece of code would convert this to 
a regex) this just maps whatever is coming AFTER /newname/ and not what 
reaches /newname (again, mind the lack of the last /).

Frankly, I'm a bit scared to suggest that your issue (i.e. being accustomed 
on how web2py treats incoming urls in without arguments, which is that 
calling /a/c/f is the same as /a/c/f*/*) can be easily solved by 

('/new_name', '/app/controller/function')



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to