lp:~cmiller/desktopcouch/record-expose-revid-bug445611
- Get this branch:
- bzr branch lp:~cmiller/desktopcouch/record-expose-revid-bug445611
Branch merges
- Rodrigo Moya (community): Approve
- Stuart Langridge (community): Approve
-
Diff: 48 lines (+28/-2)2 files modifieddesktopcouch/records/record.py (+6/-2)
desktopcouch/records/tests/test_record.py (+22/-0)
Related bugs
Bug #445611: The Record class should expose the current record revision | Medium | Fix Released |
Related blueprints
Branch information
Recent revisions
- 113. By Chad Miller
-
Add a new attribute on Record class, so that users can get a records's
revision id without using ._dict or ¨_rev". - 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.
- 110. By Stuart Langridge
-
Improve pairing tool reliability. Make pick_or_listen not be a global, which fixes a race condition in signals and initialization.
- 109. By Manuel de la Peña
-
Moved record_id to be a property rather than an attribute in order to be able to give a consistent behavior
- 108. By Chad Miller
-
Do not read from the keyring if we have a configuration file that has the information we need.
Move config file manipulation into execution-context code. Make all config access go though explicit context of execution.
Simplify config-value getting and setting.
Hard-code port for new configurations, since we are very unlikely to use a value other than zero.
- 106. By Chad Miller
-
There is a period between when couchdb has written its PID file and when it is really listening on a socket for connections. Our code assumes that writing its PID file is a signal that it's ready to work, but it is not. Now, we loop on looking for the socket, instead of interpreting missing as an error.
- 105. By Manuel de la Peña
-
Ensures that the method that test for the presence of the record does not just check if the field is present but ensures the value 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