Merge lp:~leonardr/lazr.restful/no-latest-version into lp:lazr.restful
Proposed by
Leonard Richardson
on 2010-02-11
| Status: | Merged |
|---|---|
| Merged at revision: | not available |
| Proposed branch: | lp:~leonardr/lazr.restful/no-latest-version |
| Merge into: | lp:lazr.restful |
| Diff against target: |
340 lines (+35/-67) 18 files modified
src/lazr/restful/NEWS.txt (+8/-12) src/lazr/restful/_resource.py (+1/-4) src/lazr/restful/directives/__init__.py (+1/-2) src/lazr/restful/docs/absoluteurl.txt (+3/-4) src/lazr/restful/docs/multiversion.txt (+1/-2) src/lazr/restful/docs/webservice-declarations.txt (+0/-1) src/lazr/restful/docs/webservice-error.txt (+1/-1) src/lazr/restful/docs/webservice.txt (+1/-2) src/lazr/restful/example/base/root.py (+3/-3) src/lazr/restful/example/base/tests/field.txt (+1/-1) src/lazr/restful/example/base/tests/root.txt (+2/-2) src/lazr/restful/example/base/tests/wadl.txt (+1/-1) src/lazr/restful/example/multiversion/root.py (+1/-2) src/lazr/restful/interfaces/_rest.py (+6/-20) src/lazr/restful/metazcml.py (+1/-4) src/lazr/restful/publisher.py (+2/-4) src/lazr/restful/testing/webservice.py (+1/-1) src/lazr/restful/tests/test_webservice.py (+1/-1) |
| To merge this branch: | bzr merge lp:~leonardr/lazr.restful/no-latest-version |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Gary Poster | 2010-02-11 | Approve on 2010-02-11 | |
|
Review via email:
|
|||
To post a comment you must log in.
| Leonard Richardson (leonardr) wrote : | # |

This branch fixes bug 520542, removing the confusing "latest_ version_ uri_prefix" attribute from IWebServiceConf iguration and everywhere else. Now there is a single list of active_versions and if you want to have a floating dev version, it can go on the end of the active_versions list.
The changes to the tests happen because FakeRequest (used by the tests) by default made a request to the last version mentioned in active_versions, *not* the most recent version period. When 'devel' was in latest_ version_ uri_prefix, the last version mentioned in active_versions was '1.0'. Now it's 'devel', so some of the URLs in tests changed.