On Tue, Jul 13, 2010 at 5:29 PM, Ross Vandegrift <[email protected]> wrote: > On Tue, Jul 13, 2010 at 11:37:29AM -0700, Mike Orr wrote: >> You may be able to do it with a catchall route and a function condition. >> >> http://routes.groovie.org/setting_up.html#conditions >> >> Or you could subclass Routes to lowercase the URL before matching it. > > Or you can do it the silly and tedious way, which doubles as > motivation to avoid requiring case-insensitive routes! > > map.connect(r"/[Gg][Rr][Oo][Uu][Pp][Ss]/{action}", controller="groups")
Regex markup is not officially supported in route paths except in requirement arguments, so I wouldn't count on this always working. -- Mike Orr <[email protected]> -- 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.
