Re: [web2py] Re: URL rewrite throwning invalid request when URL contains spaces or hyphens

2011-05-01 Thread Jonathan Lundell
On May 1, 2011, at 7:23 AM, Syed Mushtaq wrote: > Thanks Massimo for the reply , > > I tried with the comma at the end but no luck :( > > I traced it back to the code where it was giving a 400 and found that its not > able to match the regular expression in > rewrite.py function regex_url_in l

Re: [web2py] Re: URL rewrite throwning invalid request when URL contains spaces or hyphens

2011-05-01 Thread Syed Mushtaq
Thanks Massimo for the reply , I tried with the comma at the end but no luck :( I traced it back to the code where it was giving a 400 and found that its not able to match the regular expression in rewrite.py function regex_url_in line 542 , The regular expression for this is regex_url = re.comp

[web2py] Re: URL rewrite throwning invalid request when URL contains spaces or hyphens

2011-04-30 Thread Massimo Di Pierro
yes routes_in = (( r'/$id/$name' , r'/app/default/view/$id/$name'), ) routes_out = ( ( r'/app/default/view/$id/$name' , r'/$id/$name'), ) the extra comma at the end. ;-) On May 1, 12:58 am, Syed Mushtaq wrote: > Hi , > > I was using rewrite for making the URL reader friendly . When I use a sp