[ZPT] Evaluating a string?
Philip Kilner
phil at xfr.co.uk
Tue Feb 24 09:16:23 EST 2004
Hi Chris,
Chris Withers wrote:
>> - If the variable isn't there, you get key errors, so you need: -
>>
>> <tal:block tal:condition="exists:python:path(error_message)"
>> content="python:path(error_message)"/>
>
>
> Or neater:
>
> <tal:x replace="my_thing here/?error_message|string:Unknown Error"/>
>
Looks much neater - will have a play.
Ta!
--
Regards,
PhilK
Email: phil at xfr.co.uk / Voicemail & Facsimile: 07092 070518
“The basic tool for the manipulation of reality is the manipulation
of words. If you can control the meaning of words, you can control
the people who must use the words.” Philip K. Dick
More information about the ZPT
mailing list