Re: [web2py] APP-specific routers

2012-10-03 Thread Jonathan Lundell
On 2 Oct 2012, at 9:24 PM, lyn2py lyn...@gmail.com wrote: The new (or maybe not so new, by now) app-specific routers is an excellent idea. I love it. Can I get some help regarding the use of it? The following code is in my routes.py file, but it doesn't seem to work: routers = {

Re: [web2py] APP-specific routers

2012-10-03 Thread lyn2py
With similar code in the main routes.py (main = in the web2py dir), the URL helper will leave out the 'default' and 'index' from the web address. E.g. assuming I have 'some_func' function in default.py controller, URL generated = *http://weburl.com/myapp/some_func* Likewise, for index page, it

Re: [web2py] APP-specific routers

2012-10-03 Thread Jonathan Lundell
On 3 Oct 2012, at 8:38 AM, lyn2py lyn...@gmail.com wrote: With similar code in the main routes.py (main = in the web2py dir), the URL helper will leave out the 'default' and 'index' from the web address. E.g. assuming I have 'some_func' function in default.py controller, URL generated =

Re: [web2py] APP-specific routers

2012-10-03 Thread lyn2py
Thanks Jonathan. I appreciate this! On Thursday, October 4, 2012 12:23:30 AM UTC+8, Jonathan Lundell wrote: On 3 Oct 2012, at 8:38 AM, lyn2py lyn...@gmail.com javascript: wrote: With similar code in the main routes.py (main = in the web2py dir), the URL helper will leave out the 'default'

[web2py] APP-specific routers

2012-10-02 Thread lyn2py
The new (or maybe not so new, by now) app-specific routers is an excellent idea. I love it. Can I get some help regarding the use of it? The following code is in my routes.py file, but it doesn't seem to work: routers = { app: dict( default_language =