Skip to content

Instantly share code, notes, and snippets.

@umpirsky
Created December 19, 2011 09:54
Show Gist options
  • Save umpirsky/1496379 to your computer and use it in GitHub Desktop.
Save umpirsky/1496379 to your computer and use it in GitHub Desktop.
RECORD_TYPE_TEST = 'http://umpirsky.com/record-type/test'
db = CouchDatabase('desktopcouchbug', create=True)
##db.put_record(Record({
## 'record_type': RECORD_TYPE_TEST,
## 'name': 'test record',
## 'dict': {}
##}))
record = db.get_record('5h5FK4cMbvgSheFDoY5mPT')
record['dict']['1'] = {'path': 'foo'}
db.update_fields(id, record) # throws ''Document' object has no attribute 'read''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment