db.create_doc should take the default value of '{}' for content
Bug #1020284 reported by
Lucio Torre
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
U1DB |
Triaged
|
Medium
|
Eric Casteleijn |
Bug Description
With the .content feature the user is no longer required to manually craft any json except in the case of creating docs, where he has to either create a json string to provide to db.create_doc or create a rev_id and doc_id manually to use when creating a document by itself.
It would be easier if we could leave all the initialization stuff to the db class and just use db.create_doc() to get an empty doc that is properly initialized and ready to be used, without having to deal with json or other internals.
Changed in u1db: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Eric Casteleijn (thisfred) |
To post a comment you must log in.