Hmmm... This quick script works for me... import routes
m = routes.Mapper() m.connect('user/list', controller='user', action='list', conditions=dict(method=['GET', 'HEAD'])) m.environ = dict(REQUEST_METHOD='HEAD') print m.match('/user/list') I'll poke around a bit this weekend in my pylons sandbox and let ya know what I figure out. jw On Nov 16, 2:39 pm, "Lawrence Oluyede" <[EMAIL PROTECTED]> wrote: > On Nov 16, 2007 7:48 PM, programmer.py <[EMAIL PROTECTED]> wrote: > > > > > I saw this in the routes manual... > > (http://routes.groovie.org/manual.html) > > > m.connect('user/list', controller='user', action='list', > > conditions=dict(method=['GET', 'HEAD'])) > > That's exactly what I did, it didn't work. I guess because of > map.resource() that is before the .connect rule > > -- > Lawrence, oluyede.org - neropercaso.it > "It is difficult to get a man to understand > something when his salary depends on not > understanding it" - Upton Sinclair --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---