Hi Massimo,
I updated and now it fails with a similar exception on close:
Traceback (most recent call last):
File "/Users/david/web2py/gluon/main.py", line 466, in wsgibase
BaseAdapter.close_all_instances('commit')
File "/Users/david/web2py/gluon/dal.py", line 283, in
close_all_instances
instance.connection.close()
AttributeError: 'Server' object has no attribute 'close'
Thanks,
David
On Jan 5, 11:41 pm, mdipierro <[email protected]> wrote:
> this should now be fixed.please try.
>
> On Jan 5, 8:21 pm, David Watson <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > I am running CouchDBX 1.0.1 on Mac OS X 10.6 with couchdb-python
> > version 0.8. I am using the following code in db.py:
>
> > db=DAL('couchdb://127.0.0.1:5984')
> > db.define_table('person',Field('name'))
> > id=db.person.insert(name='Jim')
> > print id
> > row=db.person(id)
> > print row
> > print db(db.person.id==id).update(name="john")
> > print db.person(id)
> > del db.person[id]
>
> > However, when the code executes, it tries to call commit and dies. See
> > the traceback below. I realize that this support is experimental but I
> > wasn't sure if there was something I was doing wrong. I'm running hg
> > clones of trunk for both web2py and couchdb-python.
>
> > Thanks,
> > David
>
> > VERSION
> > web2py™ Version 1.91.6 (2011-01-04 15:55:30)
> > Python Python 2.6.1: /usr/bin/python
>
> > TRACEBACK
>
> > Traceback (most recent call last):
> > File "/Users/david/web2py/gluon/main.py", line 466, in wsgibase
> > BaseAdapter.close_all_instances(BaseAdapter.commit)
> > File "/Users/david/web2py/gluon/dal.py", line 272, in
> > close_all_instances
> > action(instance)
> > File "/Users/david/web2py/gluon/dal.py", line 1036, in commit
> > return self.connection.commit()
> > AttributeError: 'Server' object has no attribute 'commit'