[web2py] Re: CouchDB & NoSQLAdapter.represent for datetime

2011-10-25 Thread H.C. v. Stockhausen
Hi Massimo, I tested and get a error now. The problem is that value is None. Function argument list(self=, obj=None, fieldtype='reference auth_user') Code listing line 3531 pp -         value = NoSQLAdapter.represent(self, obj, fieldtype)        if fieldtype=='id':       

[web2py] Re: CouchDB & NoSQLAdapter.represent for datetime

2011-10-24 Thread Massimo Di Pierro
I made some changes in trunk that should have fixed the date/datetime issue but I am not sure. Can you try it? On Oct 24, 7:25 pm, "H.C. v. Stockhausen" wrote: > Hi Massimo, > > thanks for your reply. I don't think CouchDB has a datetime type but > the CouchDB-0.8 driver itself maps to and from i

[web2py] Re: CouchDB & NoSQLAdapter.represent for datetime

2011-10-24 Thread H.C. v. Stockhausen
Hi Massimo, thanks for your reply. I don't think CouchDB has a datetime type but the CouchDB-0.8 driver itself maps to and from iso string representations '2007-04-01T15:30:00Z'. See Chapter 4 "Mapping CouchDB documents to Python objects: couchdb.mapping" at http://packages.python.org/CouchDB/mapp

[web2py] Re: CouchDB & NoSQLAdapter.represent for datetime

2011-10-23 Thread Massimo Di Pierro
This is very helpful. I was expecting this problem. How are datetimes supposed to be stores in CouchDB? On Oct 22, 3:13 am, "H.C. v. Stockhausen" wrote: > Hi > > I am just testing the CouchDB Adapter and it fails when registering a > new user. I tired both w2py's default auth and janrain. The pro