On Wed, 2011-11-23 at 00:36 -0500, Chris McDonough wrote: > On Tue, 2011-11-22 at 21:28 -0800, Jonathan Vanasco wrote: > > Pylons had a nice little convenience method under the hood... > > > > If i had the equivalent of: > > config.add_handler("account", "/account/{action}", > > "myapp.handlers.account:AccountHandler",) > > > > a request to- > > account/sign-up > > > > would map to- > > class AccountHandler: > > def sign_up(): > > pass > > > > > > are there any similar conveniences in Pyramid ? > > I think you just described it (in pyramid_handlers)?
Apologies, I didn't read the title (relying on someone reading the title and connecting it mentally to the body is always dicey ;) Yes: http://docs.pylonsproject.org/projects/pyramid_handlers/en/latest/#configuration-knobs > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.