On Aug 20, 12:45 am, Jurie-Jan Botha <[email protected]> wrote: > > This Routes syntax might work for you: > > > map.connect('/some/test/path', > > controller='myproject.tests.controllers:MyController') > > This doesn't seem to work at all. Was this included in a specific > version of routes or something? > > Perhaps there's a missing piece of code here.
It's a fairly recently addition. I've got Routes 1.12.3 installed, but I'm not sure when this feature first appeared... Actually, you know what: I think this is a Pylons thing... Yes, the `pylons.wsgiapp:PylonsApp.find_controller` method handles this, so I think you need to be using Pylons 1.0 for it to work. http://bitbucket.org/bbangert/pylons/src/tip/pylons/wsgiapp.py#cl-233 Also, in case a Routes developer sees this, there's a docstring error in Mapper.__init__: ``minimization`` ... Defaults to True. But in __init__: self.minimization = False -- 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.
