c pisze:
> hello everyone!
>
> i'm new to pylons and routes and i'd encountered a problem trying to
> configure routes to my needs.
> i'd like to have admin panel section in my site (with subsections like
> overall settings, gallery settings etc.), and wanted an urls too look
> like that:
>
> www.example.com/panel/overall/save - that would trigger action save of
> controller panel_gallery
>   
I use that configuration:

map.connect('/panel/overall/{action}/{id}',
        controller='panel/overall', action='index', id=None, _minimize=True)
> www.example.com/panel/gallery/add - that would trigger action add of
> controller panel_gallery
>   
you maybe add also:

map.connect('/panel/{action}', controller='panel_auth', action='index', 
_minimize=True)

for

www.example.com/panel

>   
And create controller command:
$ paster controller "panel/gallery"

List of files:

controllers/panel_auth.py
controllers/panel/gallery.py


> after reading routes manual I wasn't able to come up with a solution
> i'd be grateful for any suggestions
>
> best regards
> c
>
> >
>
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to