[Zope] ZSQLmethods don't return a list?!

Oliver Bleutgen Oliver Bleutgen <myzope@gmx.net>
Wed, 5 Sep 2001 00:32:59 +0200


> hey guys

> I created a ZSQL Method "SELECT * FROM users" which returns 10 rows
> now in a python script:
> type =3D context.type
> sql =3D context.mySqlMethod()
> return type(sql)

> this returns: <type 'instance'>
> while I expected <type 'list'>

try
=2E..
sql =3D contet.mySqlMethod.dictionaries()
return sql

and look at that output...


cheers,
oliver