<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>If your Z SQL method is in another folder, either visible from&nbsp;the current folder or from the directory tree to the current folder,&nbsp;use </DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt;dtml-with [Folder_Name]&gt;</DIV>
<DIV>&lt;dtml-call "update_something_sql"&gt;</DIV>
<DIV>&lt;/dtml-with&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>If the Z SQL method is in a somewhat less obvious location, try:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt;dtml-with [Root_Folder]&gt;</DIV>
<DIV>&lt;dtml-with [Folder1]&gt;</DIV>
<DIV>&lt;dtml-with [SQL_Folder]&gt;</DIV>
<DIV>&lt;dtml-call "update_something_sql"&gt;<BR>&lt;/dtml-with&gt;<BR>&lt;/dtml-with&gt;</DIV>
<DIV>&lt;/dtml-with&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Using the dtml-with tag, you can force the page to reference the namespace&nbsp;you want&nbsp;and you can recurse down a folder structure.&nbsp; Just remember to close it as soon as you don't need the other namespace for anything otherwise you'll run into headaches of mis-referencing other objects.<BR><BR>&gt;&gt;&gt; Asad Habib &lt;ahabib@engin.umich.edu&gt; 30/03/2004 5:56:24 am &gt;&gt;&gt;<BR></DIV>
<DIV style="COLOR: #000000">I have a DTML document that calls a DTML method which in turn calls<BR>another DTML method. This second DTML method is called using the following<BR>syntax:<BR><BR>&lt;dtml-call "some_dtml_method"&gt;<BR><BR>Wihin this second DTML method I try to access a Z SQL method using the<BR>following syntax:<BR><BR>&lt;dtml-call "update_something_sql"&gt;<BR><BR>This causes Zope to flag me with an error which states the following:<BR><BR>Error Type: NameError<BR>Error Value: global name 'update_something_sql' is not defined<BR><BR>I am fairly certain this is a namespace issue but I don't know how to<BR>correct it. When I try accessing this same Z SQL method from the first<BR>DTML method, everything works fine.<BR><BR>Also, for your information, the DTML document, the two DTML methods, and<BR>the Z SQL method are all defined on the same level.<BR><BR>Any help would be greatly appreciated. Thanks.<BR><BR>- Asad<BR><BR>_________________________________________!
 ______<BR>Zope maillist&nbsp; -&nbsp; Zope@zope.org<BR><A href="http://mail.zope.org/mailman/listinfo/zope">http://mail.zope.org/mailman/listinfo/zope</A><BR>**&nbsp;&nbsp; No cross posts or HTML encoding!&nbsp; **<BR>(Related lists - <BR><A href="http://mail.zope.org/mailman/listinfo/zope-announce">http://mail.zope.org/mailman/listinfo/zope-announce</A><BR><A href="http://mail.zope.org/mailman/listinfo/zope-dev">http://mail.zope.org/mailman/listinfo/zope-dev</A> )<BR></DIV></BODY></HTML>