Hi
I am working on a website where users can go to their profile by using
URL like:
http://mysite.com/profile/view?user=username

I want to have a nicer URL, like:
http://mysite.com/user/username

The above URL can be easily done by using routes / map.connect:
map.connect('/user/{username}', controller='profile', action='view',
username='username')

However, to get the above working, I will have to change the
declaration of view() action in profile controller to accept username
as an argument. It already check for username in 'GET'. I want to keep
the old method working along with the new method.

Is there any way I can get routes to convert the request to a GET
based URL, rather than explicitly passing the argument to view
function?

Thanks,
DD.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to