[Zope] ZSQL: expr and sqltest?

Dieter Maurer dieter@handshake.de
Fri, 12 Apr 2002 21:32:02 +0200


Richard Wesley writes:
 > According to the documentation that comes with Zope 2.5.0, the=20
 > dtl-sqltest tag can take either a variable or an expr=3D"" tag.  But=20
 > when I do this, I get the message "Invalid atrribute name, "expr" for=20
 > tag <dtml-sqltest..."
 >=20
 > What's up?
You used

    <dtml-sqltest expr=3D"your expression" ...>

?

No missing "=3D"? No inserted spaces between "expr", "=3D" and the leadin=
g
=B4"=B4 of the expression?

If you reply with "yes" to all those questions, retry by
omitting the "expr=3D" but retaining the "..." around your expression.

BTW, you need to tell "sqltest" the column name, when you use
"expr".


Dieter