SOLVED: [ZPT] path variable doesn't exist

Chris Withers chris at simplistix.co.uk
Wed Jan 21 03:45:19 EST 2004


Justin Robertson wrote:

> <div tal:define=cid request/cid | nothing>
> <div tal:define=tid request/tid | nothing>
> <div tal:condition="python:cid and tid">
>  Only show me if cid and tid exist.
> </div>
> </div>

The above seems overly verbose.
What error do you get with:
<div tal:define="python:request.get('cid') or request.get('tid')">
Only show me if cid and tid exist.
</div>

cheers,

Chris




More information about the ZPT mailing list