Merge lp:~leonardr/lazr.restfulclient/delete-entry into lp:lazr.restfulclient
Proposed by
Leonard Richardson
Status: | Merged |
---|---|
Approved by: | Aaron Bentley |
Approved revision: | 101 |
Merged at revision: | not available |
Proposed branch: | lp:~leonardr/lazr.restfulclient/delete-entry |
Merge into: | lp:lazr.restfulclient |
Diff against target: |
81 lines (+34/-1) 4 files modified
src/lazr/restfulclient/NEWS.txt (+4/-1) src/lazr/restfulclient/_browser.py (+1/-0) src/lazr/restfulclient/docs/entries.txt (+25/-0) src/lazr/restfulclient/resource.py (+4/-0) |
To merge this branch: | bzr merge lp:~leonardr/lazr.restfulclient/delete-entry |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Aaron Bentley (community) | Approve | ||
Review via email: mp+24421@code.launchpad.net |
Description of the change
This branch rectifies a major oversight: there was no non-hacky way to DELETE a lazr.restful entry resource from lazr.restfulclient.
To get the tests to work I had to create
https:/
To post a comment you must log in.
Oh: I originally wanted to implement __del__ instead of lp_delete, but upon reading the documentation I saw that __del__ deletes the _variable_ assignment, not necessarily the underlying object. So it's not an appropriate overload.