[Zope] Iteration over columns in ZSQLMethod result not working in Zope 2.12.13
Tres Seaver
tseaver at palladion.com
Tue Dec 7 09:19:40 EST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 12/01/2010 08:27 AM, Andreas Elvers wrote:
> Hi,
>
> I stumbled over the following error using Zope 2.12.13. Bug ?
>
> Given some ZSQLMethod, and either ZMySQLDA (3.1.1) or ZPsycopgDA
> (2.0.14 or 2.2.2)
> and the following python script:
>
> result = context.someZSQLMethod()
> for row in result:
> for col in row: #this will fail
> pass
Does the "safe list" builtin work for you in 2.12?
for row in result:
for col in list(row):
pass
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkz+QnwACgkQ+gerLs4ltQ5kmQCfdzh17HxciJxRhr2oQwkxqrcL
ewkAoNc4bvQ/mI5fEq1xkrmn9bPiVWzA
=ZEge
-----END PGP SIGNATURE-----
More information about the Zope
mailing list