Re: [web2py] Re: rewrite url using routes.py

2010-08-02 Thread Bruno Rocha
I really tried every example given, but no one works on GAE I cant figure out how to change this: http://web2pybrasil.appspot.com/init/plugin_wiki/page/home to this: http://web2pybrasil.appspot.com/page/home 2010/8/1 mdipierro > ('/(.*?)/(.*?)', '/$1/yourcontroller/$2'), > > or use > >

Re: [web2py] Re: rewrite url using routes.py

2010-08-01 Thread Jonathan Lundell
On Aug 1, 2010, at 2:54 AM, mdipierro wrote: > I realized there was a bug in rewrite that prevented $1, $2, etc from > working. Please check if this is now fixed in trunk. A very minor redundancy: regex_at = re.compile('(?

Re: [web2py] Re: rewrite url using routes.py

2010-08-01 Thread Bruno Rocha
Does not works here, may I doing something wrong. $1 HelloWorld $2 default $3 index/args/ I do not want the url: http://127.0.0.1/HelloWorld/default/index I need http://127.0.0.1/index that points me to the place I need, but raises INVALID REQUEST I tried to remane my app to 'init' but does not

Re: [web2py] Re: rewrite url using routes.py

2010-07-31 Thread Thadeus Burgess
Don't forget routes out routes_out = ( ('/(.*)/(.*)/(.*)', '/$3'), ) -- Thadeus On Sun, Aug 1, 2010 at 1:16 AM, Vasile Ermicioi wrote: > oops, not like that but like this > routes_in = ( >     ('/(.*)/(.*)',   '/$1/yourcontroller/$2'), > ) > everything is passed to a controller (e.g. 'def

Re: [web2py] Re: rewrite url using routes.py

2010-07-31 Thread Vasile Ermicioi
oops, not like that but like this routes_in = ( ('/(.*)/(.*)', '/$1/yourcontroller/$2'), ) everything is passed to a controller (e.g. 'default')

Re: [web2py] Re: rewrite url using routes.py

2010-07-31 Thread Vasile Ermicioi
routes_in = ( ('/(.*)/(.*)/(.*)', '/$1/$3'), ) little explanation: $1 - app $2 - controller $3 - action + vars and args as you see $2 is skipped