[Zope] Trouble with ZSQL method

Antonio Carrasco antoniojezu@hotmail.com
Wed, 5 Sep 2001 05:08:53 +0200


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."