lp:~cmiller/desktopcouch/recorddict_more_dictly
- Get this branch:
- bzr branch lp:~cmiller/desktopcouch/recorddict_more_dictly
Branch merges
- Stuart Langridge (community): Approve
- Eric Casteleijn (community): Approve
- John O'Brien (community): Approve
-
Diff: 27 lines (+6/-0)2 files modifieddesktopcouch/records/record.py (+4/-0)
desktopcouch/records/tests/test_record.py (+2/-0)
Branch information
Recent revisions
- 118. By Chad Miller
-
desktopcouch.
record. RecordDict needs has_key to be more like the dict that we
emulate. This sucks because dict.has_key is going away in Py 3, but let's be
extra nice for another year or so. - 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.
- 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
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:desktopcouch