On 1/30/07, Ian Wilson <[EMAIL PROTECTED]> wrote:
>
> You should probably be using the given url functionality.
>
> redirect('/editCategory', name=category.name)
>
> And in templates:
>
> ${tg.url("/editCategory", name=category.name)}
Perfect, worked like a charm.
> But I don't think you can include the & sign in the template directly.
I don't need to, the above solution solves the problem.
Previously I was creating links like this:
<a href="/somepage?name=${someobject.name}">${someobject.name}</a>
This breaks badly if someobject.name has & in it. Your solution works
without problems(thus far) :)
Thanks!
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
-~----------~----~----~----~------~----~------~--~---