[Zope] TAL hasProperty
Geir Bækholt
Geir Bækholt <geirh@funcom.com>
Fri, 4 Oct 2002 11:13:31 +0200
on or about, Friday, October 04, 2002, we have reason to believe that
simon litwan wrote something along the lines of :
sl> i try to get list of objects with metatyp Folder AND the property show.=
is
sl> it possible to do this with TAL=3F
sl> or do i have to do this whith a python script=3F
sl> the following code doesn't work but was an idea and shows what i mean.
sl> <div tal:define=3D"objects python:here.objectValues('Folder');
sl> list_objects python:objects.hasProperty('show')"
sl> tal:repeat=3D"item list_objects">
perhaps something like this would do =3F
<untested>
<div tal:repeat=3D"objects python:here.objectValues('Folder')"
tal:omit-tag=3D"python:1">
<div tal:condition=3D"exists:objects/show">
a folder with attribute show
</div>
</div>
</untested>
hth :)
--=20
Geir B=E6kholt geir@funcom.com
Zopatista , tools-developer
Product Operations
Funcom Oslo