[Zope-dev] Another bug in DA.py?
Juan Carlos Coruņa
jcoruna@umd.es
Thu, 22 Jun 2000 09:39:13 GMT
--------------=_4D4800ADD0FF01AD5288
Content-Description: filename="text1.txt"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
If I try the following ZSQL method it displays de authorization=20
window:
<dtml-let Cl=3D=94get_Cliente(N_=3D'22606')[0]=94>
select * from Cliente where N_=3D'22606'
</dtml-let>
but if I try the next ZSQL method it displays the correct result (the=20=
difference is the integer index in the first line):
<dtml-let Cl=3D=94get_Cliente(N_=3D'22606')=94>
select * from Cliente where N_=3D'22606'
</dtml-let>
As you can see the =93dtml-let=94 isn't usefull, but this is a simplifie=
d=20
example.
For reference here is the get_Cliente ZSQL method:
select * from Cliente where <dtml-sqltest N_ type=3Dstring>
Very simple.
Thank you in advance.
--------------=_4D4800ADD0FF01AD5288
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>Another bug in DA.py?</TITLE>
<META NAME=3D"GENERATOR" CONTENT=3D"StarOffice/5.1 (Win32)">
<META NAME=3D"CREATED" CONTENT=3D"20000622;11291757">
<META NAME=3D"CHANGEDBY" CONTENT=3D"Juan Carlos Coruña">
<META NAME=3D"CHANGED" CONTENT=3D"20000622;11391242">
</HEAD>
<BODY>
<P>If I try the following ZSQL method it displays de authorization
window:</P>
<P><dtml-let Cl=3D”get_Cliente(N_=3D'22606')[0]”></P>
<P>select * from Cliente where N_=3D'22606'</P>
<P></dtml-let></P>
<P>but if I try the next ZSQL method it displays the correct result
(the difference is the integer index in the first line):</P>
<P><dtml-let Cl=3D”get_Cliente(N_=3D'22606')”></P>
<P>select * from Cliente where N_=3D'22606'</P>
<P></dtml-let></P>
<P>As you can see the “dtml-let” isn't usefull, but this is a=
simplified example.</P>
<P>For reference here is the get_Cliente ZSQL method:</P>
<P>select * from Cliente where <dtml-sqltest N_ type=3Dstring></P>=
<P>Very simple.</P>
<P>Thank you in advance.</P>
</BODY>
</HTML>
--------------=_4D4800ADD0FF01AD5288--