I don't know about you but I get an error (Zope 2.3). I can access all the other methods names, data_dictionary etc actually by context.mySqlMethod().name(). But not tuple or dictionary, looks like a bug to me. Cheers. -- Andy McKay. ----- Original Message ----- From: "Oliver Bleutgen" <myzope@gmx.net> To: <zope@zope.org> Sent: Tuesday, September 04, 2001 3:32 PM Subject: Re: [Zope] ZSQLmethods don't return a list?!
hey guys
I created a ZSQL Method "SELECT * FROM users" which returns 10 rows now in a python script: type = context.type sql = context.mySqlMethod() return type(sql)
this returns: <type 'instance'> while I expected <type 'list'>
try ... sql = contet.mySqlMethod.dictionaries() return sql
and look at that output...
cheers, oliver
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )