Re: [web2py] default function in a non default controller with args - routing

2013-02-06 Thread Francisco Costa
Right now using the Parameter-based system for routing if we want to define different default_function for each controller we must set a list of all controllers, and then a dictionary with a list of all functions in each controller. blog=dict( controllers=['posts', 'comments'],

Re: [web2py] default function in a non default controller with args - routing

2012-07-10 Thread Jonathan Lundell
On 10 Jul 2012, at 6:14 AM, Anthony wrote: > Thanks Anthony and Jonathan. It works! > It would be nice to have this routing documentation updated in the online > book. > > +1 > > For now, there's quite a bit in the routers.example.py file (including the > detail about making "functions" a dicti

Re: [web2py] default function in a non default controller with args - routing

2012-07-10 Thread Anthony
> > Thanks Anthony and Jonathan. It works! > It would be nice to have this routing documentation updated in the online > book. > +1 For now, there's quite a bit in the routers.example.py file (including the detail about making "functions" a dictionary of lists). Anthony

Re: [web2py] default function in a non default controller with args - routing

2012-07-10 Thread Francisco Costa
Thanks Anthony and Jonathan. It works! It would be nice to have this routing documentation updated in the online book. On Monday, July 9, 2012 10:58:22 PM UTC+1, Jonathan Lundell wrote: > > On 9 Jul 2012, at 1:29 PM, Francisco Costa wrote: > > I'm using the Parameter-based system for routing > >

Re: [web2py] default function in a non default controller with args - routing

2012-07-09 Thread Jonathan Lundell
On 9 Jul 2012, at 1:29 PM, Francisco Costa wrote: > I'm using the Parameter-based system for routing > > In my routes.py I have this > > routers = dict( > > # base router > BASE = dict( > applications = ['admin', 'app', 'blog'], > default_application =

[web2py] default function in a non default controller with args - routing

2012-07-09 Thread Francisco Costa
Hi, I'm using the Parameter-based system for routing In my routes.py I have this routers = dict( # base router BASE = dict( applications = ['admin', 'app', 'blog'], default_application = 'app', map_hyphen = True, domains = {