[Zope] ZSqlMethod and Brain Class

Delarue Christophe cdelarue@e-generis.com
Mon, 15 Apr 2002 09:04:23 +0200


zopedan writes:
 > I know this will sound dumb to you but when dealing with ZSqlMethod =
in
 > loops use <dtml-var "correction"> not <dtml-var correction>
 >=20
 =20
If I put <dtml-var "correction">, I've got :=20

   Error Value: global name 'Correction' is not defined

  with <dtml-var correction >, I've got :

   Error Value: Correction

The problem is the dtml-with as Dieter Maurer suggest :

> "treat" returns a sequence of "Done" records. While a single
> "Done" record has a "correction" attribute, the sequence does
> not.

> Try: '<dtml-with expr=3D"treat[0]">' ....

This works fine.

--=20
Christophe DELARUE        E-Generis
Tel.: (+33) 299 842052 =A0=A0 Fax.: (+33) 299 639331
13, sq. du Chene Germain / 35510 Cesson-Sevigne / France
mailto:cdelarue@e-generis.com