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 my web service controllers. I've followed the following steps Setup controller: paster controller services.foo Works as expected and I get a controller foo in my controllers/ services catalog. I can test it with the default routing http://mysite.com/services/foo/bar and everything works. Now the problem: 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 get a 500 error when I surf to: http://mysite.com/services/foo/bar AttributeError: 'module' object has no attribute 'Services.FooController' What am I doing wrong. Am I going wrong at the begining by creating a subdirectory to organise my controllers? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
