Hi Massimo, I think there is error in your script :
CURRENT line 69 : ('.*:https?://(.*\.)?%s:$method /$anything' % domain, '%s/$anything' % path) should be : ('.*:https?://(.*\.)?%s:$method /%s/$anything' % (domain, app), '/%s/$anything' % app) Regards, Tuan On Monday, October 25, 2010 11:04:57 AM UTC+7, mdipierro wrote: > > Aha! My mistake. $a should have been $anything everywhere in the > code. > > I fixed is and re-posted in trunk now under scripts/autoroutes.py > > Massimo > > > On Oct 24, 10:51 pm, VP <vtp2...@gmail.com> wrote: > > Update: > > > > if the function has no arguments, it works. I.e. > http://domain.com/app/default/f > > gets mapped correctly tohttp://domain.com/f > > > > But if the function has arguments, it did not work for me. I.ehttp:// > domain.com/app/default/g/a/bdoes not get mapped tohttp://domain.com/g/a/b > > > > PS: > > I got the script from here: > http://web2py.googlecode.com/hg/scripts/autoroutes.py > > as far as I can tell, it's the same as the one in this this thread. -- 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.