[Zope] Dynamic Folders in <dtml-in>

Phil Harris phil@harris-family.info
Wed, 21 May 2003 18:36:17 +0100


<dtml-with "_.restrictedTraverse('directory1/directory2')">




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

> 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
>
> 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 )
>
>
> _______________________________________________
> 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 )
>
>



-- 
Phil Harris