[Zope-DB] Select Count problem

Jose Gerardo Amaya Giron gamaya@aldeacentroamerica.com
24 Jul 2002 17:44:03 -0600


Hello all. 

In a SQL Method I'm executing a select count query this way

select count(*) as count from table where attrib=something

now I want to get the results in a python script I try to get it with no
success with the following 

SQLdata_datos_count = container.dic_datos_count(pdf_id=1)

SQLdata_datos_count[0].count

but I get a

Error Type: TypeError
Error Value: argument 2 to map() must be a sequence object

what is the way to get the count data correctly

thanks in advance

Gerardo