22 Jul
2004
22 Jul
'04
7:05 a.m.
<span tal:condition="python:not hasattr(here, image)" />
... but that is only good if you know that objects with the image ID will not be acquired from elsewhere in the current context.
...and hasattr is generally "bad" in a Zope context. I'd use: <span tal:condition="not:here/?image|nothing"> Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk