On Aug 12, 2007, at 12:15 PM, Bill wrote:
>
> I'm running Routes from Routes-1.7-py2.5.egg
>
> import routes
> m = routes.Mapper()
> m.connect('clients/:client/invoices/:invoice', controller='clients',
> action='invoices')
> m.routematch('/clients/c.1/invoices/i1') #<== Note the period in 'c.
> 1'
> <returns None>
> m.routematch('/clients/c1/invoices/i1') #<== Note the period has
> been removed
> ({'action': u'invoices',
> 'client': u'c1',
> 'controller': u'clients',
> 'invoice': u'i.1'},
> <routes.base.Route object at 0x40743dcc>)
>
> I am under the impression that periods are considered clean characters
> in URLs. Does Routes reserve periods for special purposes?
>
This sounds like a bug that was present in Routes 1.6.3, but was
actually fixed in 1.7:
http://routes.groovie.org/trac/routes/ticket/48
Are you sure you're running 1.7?
--
Philip Jenvey
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---