map.connect('/directory/controller/index/{some_id}',
                controller='directory/controller', action='index')

Then you create urls like :

url(controller='directory/controller/', action='index',
    some_id=1)

On 30 Mar, 22:03, writes_on <[email protected]> wrote:
> Hi all,
>
> I'd like to create a sub-directory under controllers to help segregate
> controllers in my application, and I see that paster can do this by issuing
> this command:
>
> paster controller {directory_name}/{controller_name}
>
> where {directory_name} is the name of the sub-directory and
> {controller_name} is the name of the new controller. I'm confused how to
> construct a url to use this controller and place it in the routes.py file.
>
> Can someone help me out?
>
> Thanks!
> Doug
>
> --
> View this message in 
> context:http://n2.nabble.com/sub-controllers-in-Pylons-tp4826902p4826902.html
> Sent from the pylons-discuss mailing list archive at Nabble.com.

-- 
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