[Zope] Querystring args from TAL

Andre Meyer a.meyer at hccnet.nl
Thu Mar 25 14:41:14 EST 2004


Andrew Veitch wrote:

>>How do I access a single argument from a query string from in a TAL
>>expression?
>>    
>>
>
>They are in the request - so request/variable_name will get them out.
>
>A
>
>  
>

And if you want to manipulate the value of one or several query string 
arguments use ZTUtils.make_query. Something along these lines:

    <body tal:define="mq python:modules['ZTUtils'].make_query">
    ...
        <a tal:attributes="href python:request.URL0 + '?' + 
mq(request.form, start=previous.first)">previous</a>
    ...

success
André




More information about the Zope mailing list