[Zope] ZPT Help!
    Florent Guillaume 
    fg at nuxeo.com
       
    Thu Jul 22 08:17:41 EDT 2004
    
    
  
In article <20040720172123.GB3198 at slinkp.com> you write:
> On Tue, Jul 20, 2004 at 03:59:22PM +1000, Michael Fox wrote:
> > If there is no matching image I want to display an "image unavailable",
> > but can't get this to work.
> > 
> > <span tal:define="image string:${here/id}.jpg">
> > 
> >   <span tal:replace="image"></span>
> > 
> >   <span tal:condition="not:python:here.objectIds(image)">
> 
> That can't work.
> objectIds() returns a list of IDs and takes no arguments.
FYI objectIds() (and friends) can take a meta_type as an argument, to
filter the results.
Florent
-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg at nuxeo.com
    
    
More information about the Zope
mailing list