Merge lp:~wallyworld/lazr.restful/dict-marshalling-default-key-value-types into lp:lazr.restful
| Status: | Merged |
|---|---|
| Approved by: | Ian Booth on 2012-03-15 |
| 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 | 2012-03-15 | Approve on 2012-03-15 |
|
Review via email:
|
|||
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/
| Ian Booth (wallyworld) wrote : | # |
> 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.
Yes, good point.
self.
is much nicer.

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.