On Fri, 2011-01-21 at 17:10 -0500, Chris McDonough wrote: > On Fri, 2011-01-21 at 13:58 -0800, Mike Orr wrote:
> If the problem is distinguishing here, two routes are not necessary > here. Just a single route and two views (or handler actions). > > config.add_route('thename', '/foo/put', 'theview', request_method='PUT') Whoops, that should have read: config.add_route('thename', '/foo/put', 'theview') > @view_config(route_name='thename', request_param='_method', > request_method='PUT') > def tunneled_put(request): > ... > > > @view_config(route_name='thename', request_method='PUT') > def untunneled_put(request): > .... -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.