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

Tomáš Fulajtár tomas.fulajtar@moraviapress.cz
Wed, 5 Sep 2001 07:41:49 +0200



> > 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
> 

Also you can find more on zope : 
http://www.zope.org/Members/spinwing/ZSQL_Results/ind
ex_html

Tomas