Routing to controllers in subdirectories

2009-09-23 Thread Tom B
Hi I'm very new to pylon (1 week) and I've got stuck and hope some kind expert can lend a guiding hand. What I want to do is place certain controllers in a subdirectory to keep my code nice and organised. I want to have a subdirectory in my controllers catalog called services, where I gather all

Re: Routing to controllers in subdirectories

2009-09-23 Thread Mike Orr
On Wed, Sep 23, 2009 at 1:00 PM, Tom B wrote: > > I need to get at the routing to do some fancy stuff. When I alter the > routing to the following: > map.connect('/services/foo/bar', controller='services.foo', > action='bar') I've heard that controller='services/foo' works. -- Mike Orr --~--

Re: Routing to controllers in subdirectories

2009-09-23 Thread Tom Blackmore
Thanks Mike works like a dream. 2009/9/23 Mike Orr > > On Wed, Sep 23, 2009 at 1:00 PM, Tom B wrote: > > > > I need to get at the routing to do some fancy stuff. When I alter the > > routing to the following: > > map.connect('/services/foo/bar', controller='services.foo', > > action='bar') > >