Merge lp:~wallyworld/lazr.restful/dict-marshalling-default-key-value-types into lp:lazr.restful
Status: | Merged |
---|---|
Approved by: | Ian Booth |
Approved revision: | 202 |
Merged at revision: | 200 |
Proposed branch: | lp:~wallyworld/lazr.restful/dict-marshalling-default-key-value-types |
Merge into: | lp:lazr.restful |
Diff against target: |
144 lines (+41/-15) 4 files modified
src/lazr/restful/NEWS.txt (+7/-0) src/lazr/restful/docs/webservice-marshallers.txt (+25/-8) src/lazr/restful/marshallers.py (+8/-6) src/lazr/restful/version.txt (+1/-1) |
To merge this branch: | bzr merge lp:~wallyworld/lazr.restful/dict-marshalling-default-key-value-types |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Kowalik (community) | code | Approve | |
Review via email: mp+97564@code.launchpad.net |
Commit message
Improve the collection field marshallers so that if the fields haven't specified key and/or value types, the default marshallers are used for the collection elements.
Description of the change
== Implementation ==
Improve the collection field marshallers so that if the fields haven't specified key and/or value types, the default marshallers are used for the collection elements. This was needed because of an error unmarshalling a return value of type Dict in Launchpad. While I was fixing this, I also added the improvement to AbstractCollect
Some drive-by lint also.
== Tests ==
Add new tests to webservice-
== Lint ==
Linting changed files:
src/lazr/
src/lazr/
src/lazr/
src/lazr/
Looks broadly good, I'm a little unhappy about the amount you have repeated getMultiAdapter with similar arguments in the marshaling code -- I'm not going to block on it, but I'd like you to have a think about a cleaner way to implement your changes.