22 Jul
2004
22 Jul
'04
12:17 p.m.
In article <20040720172123.GB3198@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@nuxeo.com