Re: [Zope] Iteration over columns in ZSQLMethod result not working in Zope 2.12.13

2010-12-08 Thread Andreas Elvers
Am 7.12.10 15:19 , schrieb Tres Seaver: 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 Yes. This works in 2.12.

Re: [Zope] Iteration over columns in ZSQLMethod result not working in Zope 2.12.13

2010-12-07 Thread Andreas Elvers
To answer part of my own question: ZSQLMethod column iteration went away with 2.12. Up until Zope 2.11.7 still had this feature available with no deprecation messages logged when using this feature. Should I file a bug for missing deprecation messages in 2.11 or for missing functionality in

Re: [Zope] Iteration over columns in ZSQLMethod result not working in Zope 2.12.13

2010-12-07 Thread Andreas Elvers
Hi Tres, [...] 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 I get an AttributeError: __iter__ [...] I don't

Re: [Zope] Iteration over columns in ZSQLMethod result not working in Zope 2.12.13

2010-12-07 Thread Tres Seaver
-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 =

Re: [Zope] Iteration over columns in ZSQLMethod result not working in Zope 2.12.13

2010-12-07 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/07/2010 05:02 AM, Andreas Elvers wrote: To answer part of my own question: ZSQLMethod column iteration went away with 2.12. Up until Zope 2.11.7 still had this feature available with no deprecation messages logged when using this

Re: [Zope] Iteration over columns in ZSQLMethod result not working in Zope 2.12.13

2010-12-07 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/07/2010 09:19 AM, Tres Seaver wrote: On 12/07/2010 05:02 AM, Andreas Elvers wrote: To answer part of my own question: ZSQLMethod column iteration went away with 2.12. Up until Zope 2.11.7 still had this feature available with no

[Zope] Iteration over columns in ZSQLMethod result not working in Zope 2.12.13

2010-12-01 Thread Andreas Elvers
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 I get an

Re: [Zope] Iteration over columns in ZSQLMethod result not working in Zope 2.12.13

2010-12-01 Thread Tres Seaver
-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 =

Re: [Zope] Iteration over columns in ZSQLMethod result not working in Zope 2.12.13

2010-12-01 Thread Andreas Elvers
Am 1.12.10 14:52 , schrieb Tres Seaver: -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