You should probably be using the given url functionality.
redirect('/editCategory', name=category.name)
And in templates:
${tg.url("/editCategory", name=category.name)}
But I don't think you can include the & sign in the template directly.
For example the following does NOT work for me:
${tg.url("/editCategory", name='Arts&Crafts')}
You must either pass the name from a controller into the template or
assign it inside a <?python ?> block within the template.
-Ian
On 1/30/07, Tor Hildrum <[EMAIL PROTECTED]> wrote:
>
> Here is my regular python-shell that doesn't exhibit this behavior:
>
> >>> from urllib import quote_plus
> >>> foo = "Arts&Crafts"
> >>> foo = quote_plus(foo)
> >>> foo
> 'Arts%26Crafts'
> >>> bar = "Årts&Crafts"
> >>> bar = quote_plus(bar)
> >>> bar
> '%C5rts%26Crafts'
>
> And a TurboGears-shell(which again doesn't exhibit this behavior):
>
> >>> from urllib import quote_plus
> >>> foo = "Arts&Crafts"
> >>> foo = quote_plus(foo)
> >>> foo
> 'Arts%26Crafts'
> >>> bar = "Årts&Crafts"
> >>> bar = quote_plus(bar)
> >>> bar
> '%C5rts%26Crafts'
>
> Tor
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---