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?
Thanks,
Bill
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---