On 20/08/12 21:26 -0700, Tristian Paul Lopez Azuara wrote:
> I ran into the problem of being unable to read models that had fields 
> declared as time type, the fields 
> showed a 'Invalid type NoneType' , when using the MySQL backend, I dug into 
> the issue and the 
> cause was that the the method 'database.dictfetchall' was returning a 
> 'datetime.timedelta'  
> object instead of a 'datetime.time'  time object. to fix this I added a 
> converter function in the 
> 'backend.mysql.database.py' file and assigned it to the TIME type . 
> Here is the patch file for the fix.

Already fixed with http://hg.tryton.org/trytond/rev/ea54d01020f2

Thanks,
-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpNpDUlVX7qM.pgp
Description: PGP signature

Reply via email to