You can use routes.py to map args(0) into vars but I think it'd be
simpler to replace the whitespaces with _ everywhere.

On Sep 11, 3:16 am, Richard <[email protected]> wrote:
> hello,
>
> I want to make my URLs pretty with "/default/record/green apple"
> instead of "default/record/42".
> But the white spaces are being parsed so that request.args[0] comes in
> as "green_apple".
> I can't do request.args[0].replace('_', ' '), because the original
> string may have included an underscore. So, what do you suggest?
>
> Richard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to