I have a DTML document that calls a DTML method which in turn calls another DTML method. This second DTML method is called using the following syntax: <dtml-call "some_dtml_method"> Wihin this second DTML method I try to access a Z SQL method using the following syntax: <dtml-call "update_something_sql"> This causes Zope to flag me with an error which states the following: Error Type: NameError Error Value: global name 'update_something_sql' is not defined I am fairly certain this is a namespace issue but I don't know how to correct it. When I try accessing this same Z SQL method from the first DTML method, everything works fine. Also, for your information, the DTML document, the two DTML methods, and the Z SQL method are all defined on the same level. Any help would be greatly appreciated. Thanks. - Asad
Asad Habib wrote:
I have a DTML document that calls a DTML method which in turn calls another DTML method. This second DTML method is called using the following syntax:
<dtml-call "some_dtml_method">
...try cahnging that to: <dtml-call some_dtml_method>
Wihin this second DTML method I try to access a Z SQL method using the following syntax:
<dtml-call "update_something_sql">
Again: <dtml-call update_something_sql>
Error Type: NameError Error Value: global name 'update_something_sql' is not defined
Is this from within the ZSQL method?
Any help would be greatly appreciated. Thanks.
Stop using DTML, this kind of suckiness is why ZPT was invented... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (2)
-
Asad Habib -
Chris Withers