Merge lp:~leonardr/lazr.restful/web-link into lp:lazr.restful
Proposed by
Tim Penhey
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Tim Penhey | ||||
Approved revision: | 142 | ||||
Merged at revision: | 165 | ||||
Proposed branch: | lp:~leonardr/lazr.restful/web-link | ||||
Merge into: | lp:lazr.restful | ||||
Diff against target: |
322 lines (+155/-30) 6 files modified
src/lazr/restful/NEWS.txt (+8/-0) src/lazr/restful/_resource.py (+23/-3) src/lazr/restful/example/wsgi/tests/introduction.txt (+2/-1) src/lazr/restful/interfaces/_rest.py (+10/-0) src/lazr/restful/tests/test_webservice.py (+111/-25) src/lazr/restful/version.txt (+1/-1) |
||||
To merge this branch: | bzr merge lp:~leonardr/lazr.restful/web-link | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Penhey (community) | Approve | ||
Steve Kowalik (community) | code* | Approve | |
Review via email: mp+46992@code.launchpad.net |
Description of the change
Often each entry published by a web service corresponds to an entry on some website. This is the case with the Launchpad web service. It's useful for a web service consumer to know the link to the corresponding object on a website. This branch makes it possible to get the website URL of an object, assuming there's a way to convert a web service request into a website request.
When writing tests I refactored some common code that creates a web service request to an entry resource, so that the test can make assertions about the entry resource.
To post a comment you must log in.
This looks like great work, thanks Leonard.
My only comment is the import on line 68 of the diff, why is that inline?