[Cubicweb] pass more params in db.py

Nicolas Chauvat nicolas.chauvat at logilab.fr
Sun Jul 19 17:26:17 CEST 2009


On Sun, Jul 19, 2009 at 07:19:21PM +0530, Dhaval Sharma wrote:
> I had to comment the line 245-47 in db.py as it was giving error "expected 2
> but found 10 input parameters"
> 
>         #self.NUMBER = native_module.pgdbType('int2', 'int4', 'serial',
>         #                                     'int8', 'float4', 'float8',
>         #                                     'numeric', 'bool', 'money')

pgdb is not the best python module to access postgresql. try psycopg2 instead.

-- 
Nicolas Chauvat

logilab.fr - services en informatique scientifique et gestion de connaissances  



More information about the Cubicweb mailing list