For the time being I've re-written the query as a web.query() which
works fine, but I do also encounter this problem with web.insert() so
it would really be nice to know why it doesn't work :/ I don't really
like generating the time when I don't have to and inserting that when
there's a perfectly usable MySQL function.
-d
On Sep 15, 5:29 am, bubblboy <[EMAIL PROTECTED]> wrote:
> Alex Macmillan wrote:
> > I have no idea what the problem it but sidestepped this issue myself
> > by generating the datetime in Python with a helper function:
>
> > from web.db import *
> > from time import gmtime
>
> > def now():
> > return "%02d-%02d-%02d %02d:%02d:%02d" % gmtime()[0:6]
>
> > newid = insert('foo',
> > createdtime = now(),
> > [...]
> > )
>
> > More readable code too!
>
> I beg to differ...
>
> > --
> > Alex Macmillan
>
> > On Sep 14, 10:54 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> >> I just triple checked and it's definitely not a mode issue. As all the
> >> mode settings still have this problem.
>
> >> -d
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---