Hi All,
I finally got some time to begin working with couchdb on trunk again.
I'm working with:
web2py™ Version 1.96.4 (2011-06-14 14:30:00)
Python Python 2.6.5: /usr/bin/python
Couchdb Apache 0.10.0
on Ubuntu 10.04 LTS
I was blown away by how far the web interface on web2py has progressed
in 6 months. No time for sleeping!
Anyhow, I created an app with the wizard, all the plugins, and no
model but auth. When the wizard finished, couchdb showed the following
objects:
auth_permission
auth_membership
auth_user
auth_event
auth_group
auth_cas
each of which was 79 bytes and empty from what I could tell. So far so
good. Then it crashed with the following stack:
Traceback (most recent call last):
File "/home/davidthewatson/tornado-couch-blog/web2py/gluon/
restricted.py", line 192, in restricted
exec ccode in environment
File "/home/davidthewatson/tornado-couch-blog/web2py/applications/
lazyblog/models/db_wizard_populate.py", line 3, in <module>
populate(db.auth_user,10)
File "/home/davidthewatson/tornado-couch-blog/web2py/gluon/contrib/
populate.py", line 155, in populate
table.insert(**record)
File "/home/davidthewatson/tornado-couch-blog/web2py/gluon/dal.py",
line 4701, in insert
return self._db._adapter.insert(self,self._listify(fields))
File "/home/davidthewatson/tornado-couch-blog/web2py/gluon/dal.py",
line 3374, in insert
ctable.save(values)
AttributeError: 'Database' object has no attribute 'save'
This looks very similar to the exceptions I was seeing six months ago
where I presume that either the registration of the couchdb callbacks
isn't right or the calls shouldn't get made for couchdb.
Thanks,
Dave