Merge lp:~leonardr/lazr.restful/use-bleedthrough-for-methods into lp:lazr.restful
Proposed by
Leonard Richardson
on 2010-01-19
| 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 | 2010-01-19 | Approve on 2010-01-19 |
|
Review via email:
|
|||
To post a comment you must log in.
| Leonard Richardson (leonardr) wrote : | # |
| Brad Crittenden (bac) wrote : | # |
Very nice branch Leonard. On IRC I suggested adding a comment about the use of None on the stack and you proposed a nice solution. With that change it looks great.
review:
Approve
(code)

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.