[ZPT] how do I test the existence of a variable?

Janko Hauser jh@comunit.de
Thu, 21 Mar 2002 13:32:08 +0100


On 21 Mar 2002 11:56:56 +0000
seb bacon <seb@jamkit.com> wrote:

> 
>   <span tal:define="thing python:namespace.get('thing', 'defaultval')">
> 

    <div tal:define="u template/test| string:default">
      <span tal:content="u">the default value</span>
    </div>

This might help, if I understand the problem.

HTH,
__Janko