#in my routes config
map.connect('/test', controller='test', action='test')
map.connect('/test', controller='test', action='test', page=1)
map.connect('/test/page{page:\d+}', controller='test', action='test')
#in my controller
print url_for(controller='test', action='test', page=1)
then i look at my debug and see /test/page1
when it should be /test
if i put quotes around the 1s to make them strings it works as i would
expect it to. so why is it incapable of comparing two integers?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---