chapeau, christoph,

thanks a lot :)

alex

Christoph Zwerschke wrote:
> alex bodnaru schrieb:
>> <?python
>> id = 'a+b'
>> ?>
>> ${tg.url('/edit?id='+id)}
>>
>> clicking on the link, this translated to "a b".
>> to avoid that, i have manualy replaced '+' with '%2b'.
> 
> Ah, now I see what happened. The '+' is not replace with ' ' by url(), 
> but by the browser. url() just leaves the '+' where it is, because it is 
> in the path and the path is assumed to be valid already. You should do 
> the following to get the query paramters properly quoted:
> 
> ${tg.url('/edit', id=id)}
> 
> -- Christoph
> 
> > 
> 

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to