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'],
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
>
> 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
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
>
>
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 =
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 = {
6 matches
Mail list logo