[web2py] Re: datetime, DAL and JSON serialization

2011-04-08 Thread Omri Har-Shemesh
Sorry for the long reply time (I am working at two jobs and didn't have time to get to it yet). I can supply the following simple example: the data model is: db.define_table("timestamps", Field("by", db.auth_user), Field("at", "datetime", default=request.now)) and the controller function is:

[web2py] Re: datetime, DAL and JSON serialization

2011-04-01 Thread Omri Har-Shemesh
Sorry for the long reply time (I am working at two jobs and didn't have time to get to it yet). I can supply the following simple example: the data model is: db.define_table("timestamps", Field("by", db.auth_user), Field("at", "datetime", default=request.now)) and the controller function is:

[web2py] Re: datetime, DAL and JSON serialization

2011-03-29 Thread nick name
This thread might be relevant: https://groups.google.com/d/topic/web2py/1N0TwMOgp3o/discussion - have you started using detect_types? (if not, you should!) This thread might also be relevant: https://groups.google.com/d/topic/web2py/RuBOLSyDc40/discussion - as_list and as_dict (if you use them

[web2py] Re: datetime, DAL and JSON serialization

2011-03-29 Thread Massimo Di Pierro
Can you provide a simple example to reproduce the problem? Massimo On Mar 29, 8:48 am, Omri Har-Shemesh wrote: > Hey, > > I have a problem with datetime json serialization. I am using the DAL with > sqlite, and accessing web2py using JSONRPC. > Today I started getting an error when trying to pas