William:<br>It has always seemed to me that the syntax you tried should work. Perhaps someday, some "real" Python guru will explain to me why sometimes it does not, and maybe even tell me how to fix it. Perhaps the module definition is not done quite right, I dunno? Try adding an extra level of depth to your module reference, and I think you may find that it works. <br>
<br>adodbapi.adodbapi.dateconverter = adodbapi.adodbapi.pythonDateTimeConverter()<br><div class="gmail_quote"><br>Looks weird to me and I don't understand it, but try it.<br>--<br>Vernon Cole<br><br>On Tue, Feb 10, 2009 at 7:46 AM, William Dode <span dir="ltr"><<a href="mailto:wilk@flibuste.net">wilk@flibuste.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
How should i do to make adodbapi return datetime instead of mx.DateTime?<br>
<br>
I tried<br>
import adodbapi<br>
adodbapi.dateconverter = adodbapi.pythonDateTimeConverter()<br>
<br>
Maybe i didn't test well, but it doesn't seems to work...<br>
<br>
thanks<br>
<font color="#888888"><br>
--<br>
William Dodé - <a href="http://flibuste.net" target="_blank">http://flibuste.net</a><br>
Informaticien Indépendant<br>
<br>
_______________________________________________<br>
DB-SIG maillist - <a href="mailto:DB-SIG@python.org">DB-SIG@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/db-sig" target="_blank">http://mail.python.org/mailman/listinfo/db-sig</a><br>
</font></blockquote></div><br>