[Zope-dev] Another bug in DA.py?

Juan Carlos Coruņa jcoruna@umd.es
Fri, 23 Jun 2000 08:12:26 GMT


--------------=_4D48009A758101847554
Content-Description: filename="text1.txt"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

After trying this with version 2.2.0b2 I became the following result:=20=

Error, Unauthorized, NoBrains



                  > If I try the following ZSQL method it displays de=20=

authorization
                  window:
                  > <dtml-let Cl=3D"get_Cliente(N_=3D'22606')[0]">
                  > select * from Cliente where N_=3D'22606'
                  > </dtml-let>
                  > but if I try the next ZSQL method it displays the=20=

correct result (the
                  difference is the > > > integer index in the first lin=
e):
                  > <dtml-let Cl=3D"get_Cliente(N_=3D'22606')">
                  > select * from Cliente where N_=3D'22606'
                  > </dtml-let>
                  > As you can see the "dtml-let" isn't usefull, but=20=

this is a simplified
                  example.
                  > For reference here is the get_Cliente ZSQL method:
                  > select * from Cliente where <dtml-sqltest N_=20
type=3Dstring>
                  > Very simple.
                  > Thank you in advance.

                  Juan -=20

                  This is due to a missing declaration in the Results=20=

and Record objects=20
                  returned by SQL Methods. It is fixed in beta 2=20
(which I hope to release=20
                  by tomorrow at the latest).


                  Brian Lloyd        brian@d...=20
                  Software Engineer  540.371.6909             =20
                  Digital Creations  http://www.digicool.com=20


--------------=_4D48009A758101847554
Content-Description: filename="text1.html"
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
	<TITLE>RE: [Zope-dev] Another bug in DA.py? </TITLE>
	<META NAME=3D"GENERATOR" CONTENT=3D"StarOffice/5.1 (Win32)">
	<META NAME=3D"CREATED" CONTENT=3D"20000623;10081507">
	<META NAME=3D"CHANGEDBY" CONTENT=3D"Juan Carlos Coru&ntilde;a">
	<META NAME=3D"CHANGED" CONTENT=3D"20000623;10122630">
</HEAD>
<BODY>
<P>After trying this with version 2.2.0b2 I became the following
result: Error, Unauthorized, NoBrains</P>
<P><BR><BR>
</P>
<P><BR><BR>
</P>
<P><BR><BR>
</P>
<P>                  &gt; If I try the following ZSQL method it
displays de authorization</P>
<P>                  window:</P>
<P>                  &gt; &lt;dtml-let Cl=3D&quot;get_Cliente(N_=3D'2260=
6')[0]&quot;&gt;</P>
<P>                  &gt; select * from Cliente where N_=3D'22606'</P>
<P>                  &gt; &lt;/dtml-let&gt;</P>
<P>                  &gt; but if I try the next ZSQL method it displays=

the correct result (the</P>
<P>                  difference is the &gt; &gt; &gt; integer index in
the first line):</P>
<P>                  &gt; &lt;dtml-let Cl=3D&quot;get_Cliente(N_=3D'2260=
6')&quot;&gt;</P>
<P>                  &gt; select * from Cliente where N_=3D'22606'</P>
<P>                  &gt; &lt;/dtml-let&gt;</P>
<P>                  &gt; As you can see the &quot;dtml-let&quot; isn't=

usefull, but this is a simplified</P>
<P>                  example.</P>
<P>                  &gt; For reference here is the get_Cliente ZSQL
method:</P>
<P>                  &gt; select * from Cliente where &lt;dtml-sqltest
N_ type=3Dstring&gt;</P>
<P>                  &gt; Very simple.</P>
<P>                  &gt; Thank you in advance.</P>
<P><BR><BR>
</P>
<P>                  Juan -=20
</P>
<P><BR><BR>
</P>
<P>                  This is due to a missing declaration in the
Results and Record objects=20
</P>
<P>                  returned by SQL Methods. It is fixed in beta 2
(which I hope to release=20
</P>
<P>                  by tomorrow at the latest).</P>
<P><BR><BR>
</P>
<P><BR><BR>
</P>
<P>                  Brian Lloyd        brian@d...=20
</P>
<P>                  Software Engineer  540.371.6909             =20
</P>
<P>                  Digital Creations  http://www.digicool.com=20
</P>
</BODY>
</HTML>

--------------=_4D48009A758101847554--