[Zope] How to use 'in' ?

Kevin Dangoor kid@kendermedia.com
Fri, 27 Aug 1999 19:31:21 -0400


The 'in' tag expects a list. If you want to get a list that contains the
objects in a Folder, you could do something like this:

<!--#with Donnees-->
  <!--#with Lab-->
      <!--#in objectValues-->
       ....your code here
      <!--#/in-->
    <!--#/with-->
<!--#/with-->

The DTML guide talks about this in more detail...

Kevin

-----Original Message-----
From: thilor <thilor@club-internet.fr>
To: zope@zope.org <zope@zope.org>
Date: Friday, August 27, 1999 6:30 PM
Subject: [Zope] How to use 'in' ?


>Hi,
>I try to use Zope. After reading the documentation,
>I don't understand how to use the  tag 'in'.
>Here is the problem:
>   The variable 'adr' is initialise to 'Donnees/Lab' (a folder)
>   <!--in adr--> return the message 'Strings are not allowed as input to
>the in tag.'
>   <!--in Donnees--> return the message 'Type error : hasattr, argument
>2: expected string, int found'
>
>Can you help me ?
>
>Thank you.
>
>
>_______________________________________________
>Zope maillist  -  Zope@zope.org
>http://www.zope.org/mailman/listinfo/zope
>
>(To receive general Zope announcements, see:
>http://www.zope.org/mailman/listinfo/zope-announce
>
>For developer-specific issues, zope-dev@zope.org -
>http://www.zope.org/mailman/listinfo/zope-dev )
>