Re: [web2py] Re: routes.py and rewriting URLs
On Aug 15, 2011, at 2:40 PM, Anthony wrote: > On Monday, August 15, 2011 5:14:01 PM UTC-4, Jonathan Lundell wrote: > On Aug 15, 2011, at 11:38 AM, Anthony wrote: > >> You should also be able to go to /admin/default/reload_routes to reload >> routes.py, but it looks like there is currently a bug that is causing that >> to fail. >> > > Any idea why (or how)? > > It calls gluon.rewrite.load() without importing gluon.rewrite. I submitted a > patch to Massimo. > Ah, thanks.
Re: [web2py] Re: routes.py and rewriting URLs
On Monday, August 15, 2011 5:14:01 PM UTC-4, Jonathan Lundell wrote: > > On Aug 15, 2011, at 11:38 AM, Anthony wrote: > > You should also be able to go to /admin/default/reload_routes to reload > routes.py, but it looks like there is currently a bug that is causing that > to fail. > > > Any idea why (or how)? > It calls gluon.rewrite.load() without importing gluon.rewrite. I submitted a patch to Massimo. Anthony
Re: [web2py] Re: routes.py and rewriting URLs
On Aug 15, 2011, at 1:20 PM, fishwebby wrote: > I tried your suggestion, with routes.py in the web2py directory, but > alas it didn't work. Not sure what I'm doing wrong (nice suggestion > about the print statement though to make sure it's working). You can also revise the doctests in routes.py to match your rules, and use that for some basic testing.
Re: [web2py] Re: routes.py and rewriting URLs
On Aug 15, 2011, at 11:38 AM, Anthony wrote: > You should also be able to go to /admin/default/reload_routes to reload > routes.py, but it looks like there is currently a bug that is causing that to > fail. > Any idea why (or how)?