Merge lp:~leonardr/lazr.restful/use-bleedthrough-for-methods into lp:lazr.restful
Proposed by
Leonard Richardson
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~leonardr/lazr.restful/use-bleedthrough-for-methods |
Merge into: | lp:lazr.restful |
Diff against target: |
244 lines (+132/-10) 4 files modified
src/lazr/restful/declarations.py (+36/-2) src/lazr/restful/docs/utils.txt (+3/-0) src/lazr/restful/docs/webservice-declarations.txt (+82/-4) src/lazr/restful/utils.py (+11/-4) |
To merge this branch: | bzr merge lp:~leonardr/lazr.restful/use-bleedthrough-for-methods |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brad Crittenden (community) | code | Approve | |
Review via email: mp+17683@code.launchpad.net |
To post a comment you must log in.
This branch creates the 'operation_ for_version' annotation, used to publish a named operation in different ways for different versions of the web service. Currently 'operation_ for_version' lets you define different versions of the methods, but it doesn't really matter, because the bleed-through stack means that only the most recent version is visible.
I made some changes to BleedThroughDict, implementing additional bits of the dict interface, so that the code in declarations.py could treat a BTD like a normal dict.
Not every annotation works with operation_ for_version. For instance, the rename_ parameters_ as annotation directly modifies an object in the bleed-through stack, instead of putting new values in there. This means that using rename_ parameters_ as will modify every version of the annotation at once. In subsequent branches I'll be changing the BleedThroughDict data structure to work with this kind of annotation.