-----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 tsea...@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----- _______________________________________________ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )