From: Ian Bicking <ianb@co...> - 2005-08-23 15:19:45
Sybren St=FCvel wrote:
> Hi Ian,
> Lovely piece of software you got there! I've been using it for about
> half an hour now, and already I'm hooked. I started rewriting a
> database management app I wrote to manage my website, and I stumbled
> upon something.
> In the documentation, it says:
> A date and time (usually returned as an mxDateTime object).
> First of all, I think this should at least tell you when an mxDateTime
> object is returned, and when something else is returned - including a
> description of that something else. Or, of course, to keep things
> consise, a link to this information.
> You see, I'm having a datetime.datetime object returned, and not an
> mxDateTime. The rest of my code does expect an mxDateTime, though. How
> can I make sure such an object is returned?
In 0.6.1 I believe it was up to the database adapter what object is=20
returned; in the svn trunk (and maybe in 0.6.1, I can't remember) I=20
believe you can do something like:
sqlobject.cols.default_datetime_implementation =3D 'mxDateTime'
Ian Bicking / ianb@... / http://blog.ianbicking.org