<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 the current folder or from the directory tree to the current folder, use </DIV>
<DIV> </DIV>
<DIV><dtml-with [Folder_Name]></DIV>
<DIV><dtml-call "update_something_sql"></DIV>
<DIV></dtml-with></DIV>
<DIV> </DIV>
<DIV>If the Z SQL method is in a somewhat less obvious location, try:</DIV>
<DIV> </DIV>
<DIV><dtml-with [Root_Folder]></DIV>
<DIV><dtml-with [Folder1]></DIV>
<DIV><dtml-with [SQL_Folder]></DIV>
<DIV><dtml-call "update_something_sql"><BR></dtml-with><BR></dtml-with></DIV>
<DIV></dtml-with></DIV>
<DIV> </DIV>
<DIV>Using the dtml-with tag, you can force the page to reference the namespace you want and you can recurse down a folder structure. 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>>>> Asad Habib <ahabib@engin.umich.edu> 30/03/2004 5:56:24 am >>><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><dtml-call "some_dtml_method"><BR><BR>Wihin this second DTML method I try to access a Z SQL method using the<BR>following syntax:<BR><BR><dtml-call "update_something_sql"><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 - Zope@zope.org<BR><A href="http://mail.zope.org/mailman/listinfo/zope">http://mail.zope.org/mailman/listinfo/zope</A><BR>** No cross posts or HTML encoding! **<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>