[Zope] dtml-in and objectValues()

Tino Wildenhain tino@wildenhain.de
Wed, 02 May 2001 13:50:29 +0200


Hi Kai,

haha :) The argument of objectValues() refers to meta_types rather
then to objectids.
What you can do is:

<dtml-in "subdir.objectValues()">
<dtml-if "id()[-3:]=3D=3D'_de'>
  render whatever
</dtml-if ends with _de>
</dtml-in objectValues>

Or - more advanced - use the ZCatalog for this,
so you would get easyness and performance the
same time :-)

Tino Wildenhain


--On Mittwoch, 2. Mai 2001 10:02 +0200 Kai Hofmann <hofmann@isl.org> wrote:

> I am successfully using
>
> <dtml-in "subdir.objectValues()">
> ....
> </dtml-in>
>
> now I wanted to do something like
>
> <dtml-in "subdir.objectValues('*_de')>
>
> i.e. only select objects from the subfolder with a name ending in "_de"
> how can this be done - I can not find any hint within the Zope =
docs/howtos
> :((((
>
> Thanks
>
> Kai
>
> --
> Institut f=FCr Seeverkehrswirtschaft und Logistik   http://www.isl.org/
> Dipl.-Inform. Kai Hofmann                       mailto:hofmann@isl.org
> Universitaetsallee GW1 Block A                   phone:+49 421 22096-83
> D-28359 Bremen                                     fax:+49 421 22096-55
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )