[Zope-dev] How to use methods in a deeper folder?

2000-10-26 Thread Loibl Johann

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  -  [EMAIL PROTECTED]
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 )




Re: [Zope-dev] How to use methods in a deeper folder?

2000-10-26 Thread Phil Harris

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" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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  -  [EMAIL PROTECTED]
 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 )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )