[Zope] ZSQL Methods in different directories

Thomas Krüger krueger@k2c2.de
Mon, 21 Apr 2003 14:57:08 +0200


Hi,
You can call a method in a subfolder just like subobjects in Python:
<dtml-call "subfolder.method()">
Where subfolder can also be a subfolder of a parent object.

In some cases you will have to hand over REQUEST and _ as parameters.

They are handed over automaticly if you are using
<dtml-with subfolder><dtml-call method></dtml-with>

Thomas

-----Original Message-----
From: [mailto:yuba@cyberback.com] 
Sent: Monday, April 21, 2003 2:46 PM
To: zope@zope.org
Subject: [Zope] ZSQL Methods in different directories


Can I place ZSQL Methods in seperate directories than the DTML Methods which call them. Well, I *know* I can, but I'm having trouble when the ZSQL Methods are not in a parent directory to be acquired.  If I place the ZSQL Methods in a folder under "main", and then create a folder "Members" under main, how do I call the "AddMemberSQL" method from the "Members" directory?  I've tried all sorts of combinations, but none seem to work.  How can I do this?

Thanks!
--greg


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