[Zope] Dynamic Folders in <dtml-in>

David Hassalevris bluepaul@earthlink.net
Wed, 21 May 2003 10:29:52 -0700


OK,
This is bugging me now.

I've got this working: (and it should work for you as well)
<dtml-with "_.getitem('directory1')">
<dtml-with "_.getitem('directory2')">
<dtml-in yourSQLMethod>
</dtml-in>
</dtml-with>
</dtml-with>

But not

 <dtml-with "_.getitem('directory1.directory2')">  ...  (i've been away from
Zope so sue me!)
David




----- Original Message ----- 
From: "Dieter Fischer" <dieter.fischer@grid-it.ch>
To: "Zope@Zope.Org" <zope@zope.org>
Sent: Wednesday, May 21, 2003 10:15 AM
Subject: RE: [Zope] Dynamic Folders in <dtml-in>


> > Try using
> >
> > _.getitem('your assembled id name')
> >
>
> I've already tried this, this leads to:
>
> Error Type: InError
> Error Value: Strings are not allowed as input to the in tag.
>
> Means, the <dtml-in> doesn't accept strings
>
> Alexis Roda also pointed me out, that it shouldn't be:
>
> <dtml-set query_string="'sql.'+getDatabase()+'.browse()'">
>
> it should be
>
> <dtml-set query_string="'sql.'+getDatabase()+'.browse'">
>
> But there's no difference.
>
> Dieter
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )