I think functions needs to be a dictionary of lists if you want to specify
functions for multiple controllers:
app = dict(
controllers = ['default', 'user'],
functions = {'default': ['index'], 'user': ['show', 'list']},
Anthony
On Monday, July 9, 2012 4:29:07 PM UTC-4, Francisco Costa wrote:
>
> 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 = {
> 'blog.domain.com' : 'blog',
> 'domain.com' : 'app'
> },
> ),
> app = dict(
> controllers = ['default', 'user'],
> functions = ['index', 'show', 'list'],
> default_controller = 'default',
> default_function = dict(default='index', user='show')
> ),
> blog = dict(
> default_controller = 'default',
> ),
> )
>
>
> When I go to http://localhost/user/john i get this: "invalid function
> (user/john)"
>
> I would like it to map it to http://localhost/user/show/john
>
> So it is possible to pass args to a default function in a non default
> controller without the name of the function?
>