[Zope] ZPT Help!
    Chris Withers 
    chris at simplistix.co.uk
       
    Thu Jul 22 03:05:56 EDT 2004
    
    
  
>     <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
    
    
More information about the Zope
mailing list