[Zope-dev] How to use methods in a deeper folder?
Phil Harris
phil.harris@zope.co.uk
Thu, 26 Oct 2000 13:32:13 +0100
Hannes,
There are a few ways to do this:
<dtml-in "eins.zwei.drei.sqlMethod">
or
<dtml-with eins>
<dtml-with zwei>
<dtml-with drei>
<dtml-in sqlMethod>
or
<dtml-with "restrictedTraverse('/eins/zwei/drei/sqlMethod')">
all have their problems/advantages.
try some of the above and see how you get on.
hth
Phil
----- Original Message -----
From: "Loibl Johann" <Johann.Loibl@SQT.SIEMENS.DE>
To: <Zope-Dev@zope.org>
Sent: Thursday, October 26, 2000 1:02 PM
Subject: [Zope-dev] How to use methods in a deeper folder?
> Hi,
>
> I would like to use a SQL-Method which exists in a deeper folder;
>
> e.g.
>
> in dtml-Method /eins/zwei/index_html there exists
>
> <dtml-in "/eins/zwei/drei/sqlMethod">
> <dtml-var something>
> </dtml-in>
>
> and my sqlMethod is situated in folder /eins/zwei/drei/
>
> Why doesn't this work?
>
> Could someone give me a helping hand?
>
> Cheers, Hannes
>
> _______________________________________________
> Zope-Dev maillist - Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope )