For the sake of simplicity, let's say my site is accessible through /
test/

Now what if I also want an optional page parameter like /test/page6 ?

For that, I set up this route:

map.connect('/test/page:page', controller='test', action='test',
page=1)

Sadly, this only works if I include the page parameter.

I have read through the routes documentation many times (which is
quite small) and tried a bunch of different configurations, but I
cannot seem to find a way to make the page parameter optional.

Somebody put me out of my misery, please :) This has already consumed
more time than I'd like to admit.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to