Hi all, I´m spanish and I have bad English! ;-D. I know this. It´s a spacename problem, see down ... From: "Devin L. Ganger" <devin@thecabal.org> To: <zope@zope.org> Sent: Thursday, September 06, 2001 4:35 AM Subject: [Zope] Trouble with ZSQL method
When I test it manually, it's great. When I try to test it with the following bit of DTML:
<dtml-let servicename="'CIP'">
<p class="bodynorm"> <dtml-var servicename> </p>
<dtml-var expr="sql.test_select_single()">
Ups!, It´s here!, the name space, mmm... , try passing '_' argument, <dtml-var expr="sql.test_select_single(_)"> It must work!
</dtml-let>
I get the following wonderful error:
Zope Error Zope has encountered an error while publishing this resource.
Error Type: Bad Request Error Value: ['servicename']
An advise to you. When you find this error always try to do a <dtml-var variable> of the Error Value, to see if the variable is in namespace. Later you can put in all functions _ and/or _.None to pass to the Method the actual namespace. I wish I have helped you. Regards. Antonio Carrasco "If you look heedfully Reality, you will be able to see pixels."