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.
``map.connect(..., controller="directory_name/controller_name")``
If you want 'controller' to be a path variable, you'd have to write a
requirement regex that matches "identifier/identifier" with exactly
one slash and an identifier on both sides.
Don't forget .__init__.py in the subpackage.
--
Mike Orr <slugg...@gmail.com>
Then you create urls like :
url(controller='directory/controller/', action='index',
some_id=1)