Merge lp:~cmiller/desktopcouch/attachments into lp:desktopcouch
Proposed by
Chad Miller
Status: | Merged |
---|---|
Approved by: | Rodrigo Moya |
Approved revision: | not available |
Merged at revision: | not available |
Proposed branch: | lp:~cmiller/desktopcouch/attachments |
Merge into: | lp:desktopcouch |
Diff against target: |
274 lines (+166/-30) 3 files modified
desktopcouch/records/record.py (+64/-0) desktopcouch/records/server_base.py (+34/-30) desktopcouch/records/tests/test_server.py (+68/-0) |
To merge this branch: | bzr merge lp:~cmiller/desktopcouch/attachments |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Rodrigo Moya (community) | Approve | ||
Eric Casteleijn (community) | Approve | ||
Review via email: mp+15765@code.launchpad.net |
Commit message
Make the database generate its own record IDs at "put" time, rather than let couchdb try to generate one. Quoth the python-couchdb folks, """The underlying HTTP ``POST`` method is not idempotent, and an automatic retry due to a problem somewhere on the networking stack may cause multiple documents being created in the database.""" A known ID solves the problem of lack of state.
Add support for attached documents. On Records, there are new methods,
.attach(
.detach(name)
.list_
.attachment_
To post a comment you must log in.
Looks great, tests pass!