[ZPT] dictionaries, has_key, and the test function
Geir Bækholt
Geir Bækholt
Fri, 13 Dec 2002 22:47:58 +0100
Hello Tim,
Friday, December 13, 2002, 10:12:49 PM, you wrote:
> I'd like to write something like:
> <span tal:define="parents python:test(results.has_key('parents'), results['parents'], None)">
> do stuff
> </span>
will this do ? :
<span tal:define="parents python:results.get('parents',None)">
--
Geir Bækholt geir@funcom.com
Tools/HCI-developer
Tools/Billing - Product Operations
Funcom Oslo