Merge lp:~cmiller/desktopcouch/record-expose-revid-bug445611 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/record-expose-revid-bug445611 |
Merge into: | lp:desktopcouch |
Diff against target: |
48 lines (+28/-2) 2 files modified
desktopcouch/records/record.py (+6/-2) desktopcouch/records/tests/test_record.py (+22/-0) |
To merge this branch: | bzr merge lp:~cmiller/desktopcouch/record-expose-revid-bug445611 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Rodrigo Moya (community) | Approve | ||
Stuart Langridge (community) | Approve | ||
Review via email: mp+15953@code.launchpad.net |
Commit message
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.
To post a comment you must log in.
Good extra API feature, tests pass, happy with change.