couchdb-python

couchdb-python change notifications

一个人想着一个人 提交于 2019-12-03 12:57:02
I'm trying to use couchdb.py to create and update databases. I'd like to implement notification changes, preferably in continuous mode. Running the test code posted below, I don't see how the changes scheme works within python. class SomeDocument(Document): ############################################################################# # def __init__ (self): intField = IntegerField()#for now - this should to be an integer textField = TextField() couch = couchdb.Server('http://127.0.0.1:5984') databasename = 'testnotifications' if databasename in couch: print 'Deleting then creating database ' +