[cx-oracle-users] Modifying fetched data python types for zope adaptor
Brought to you by:
atuining
From: Andy H. <and...@gm...> - 2006-11-08 06:57:20
|
Hi all. I've just written a Zope Database Adaptor based on cx_Oracle, unfortunately the DCOracle adaptor or DBAPI doesn't appear to be maintained any longer. The last part of the code I need to do is have the data returned by the zope adaptor return Zopes DataTime objects instaed of datetime.datetime objects. Ideally I'd be able to get cx_Oracle to create objects with Zopes type DateTime.DateTime when it's building the fetch list of data. Is there anyway of doing this? Can I replace cx_Oracle.Date safely and have it use that to build the returned object? Is there another way of doing type conversions? Thanks for any pointers or help you can give. Andy Hird |