lp:~mandel/desktopcouch/batch_update
- Get this branch:
- bzr branch lp:~mandel/desktopcouch/batch_update
Branch merges
- John O'Brien (community): Approve
- Stuart Langridge (community): Approve
- Eric Casteleijn (community): Approve
-
Diff: 67 lines (+46/-0)2 files modifieddesktopcouch/records/server_base.py (+26/-0)
desktopcouch/records/tests/test_server.py (+20/-0)
Branch information
Recent revisions
- 118. By Manuel de la Peña
-
Added method to perform a batch update of documents using the smaller amount of requests possible.
- 116. By Chad Miller
-
Fix spurious underscore that causes NameError when there is no key in
the keyring. - 113. By Chad Miller
-
Add a new attribute on Record class, so that users can get a record's
revision id without using ._dict or "_rev".n = r.record_revision # retreive revision. Will be None if just fabricated.
r.record.revision = "foo" # raises AttributeError, as it is read-only. - 112. By Chad Miller
-
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(
str_or_ file, name, content_type) .detach(name)
.list_
attachments( ) --- list of strings .attachment_
data(name) --- (string_blob, content_type) - 111. By Manuel de la Peña
-
Reverse broken logic in test of explicit record id sanity, and add a test that verifies it is correct.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:desktopcouch