linuxquestions.org has a nice approach by parsing the title and then adding the ID to the end: http://www.linuxquestions.org/questions/linux-software-2/open-source-version-control-change-management-754005/ Which can also be accessed by: http://www.linuxquestions.org/questions/linux-software-2/random-title-754005/
I think I'll do that. Richard On Sep 12, 1:10 am, mdipierro <[email protected]> wrote: > still gets repaced by _ > > On Sep 11, 9:52 am, Jonathan Lundell <[email protected]> wrote: > > > On Sep 11, 2009, at 1:16 AM, Richard wrote: > > > > 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? > > > How about %20? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

