[Zope] How to set the request dict variable by tal ?

Andreas Jung lists at andreas-jung.com
Mon Dec 15 06:21:44 EST 2003



--On Montag, 15. Dezember 2003 12:13 Uhr +0100 fowlertrainer at anonym.hu 
wrote:

> Hello zope,
>
> I want to set the request's title variable
> (REQUEST.set('title','F\xf5menü'), but by TAL, not pyscript.
>
> But it is not working:
>
>   <p tal:define="global request/title python: string 'F\xf5menü'"
> tal:replace="nothing"/>


Why should that work??? Why the "global"???

use <span tal:define="dummy python: request.set('title', 'blabla')" />

-aj



More information about the Zope mailing list