Merge lp:~leonardr/lazr.restful/exported-subclass into lp:lazr.restful
Proposed by
Leonard Richardson
Status: | Merged |
---|---|
Approved by: | Eleanor Berger |
Approved revision: | not available |
Merged at revision: | not available |
Proposed branch: | lp:~leonardr/lazr.restful/exported-subclass |
Merge into: | lp:lazr.restful |
Diff against target: |
86 lines (+21/-4) 6 files modified
src/lazr/restful/NEWS.txt (+5/-0) src/lazr/restful/_resource.py (+2/-2) src/lazr/restful/declarations.py (+1/-0) src/lazr/restful/example/base/interfaces.py (+11/-0) src/lazr/restful/metazcml.py (+1/-1) src/lazr/restful/version.txt (+1/-1) |
To merge this branch: | bzr merge lp:~leonardr/lazr.restful/exported-subclass |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eleanor Berger (community) | Approve | ||
Review via email: mp+19337@code.launchpad.net |
To post a comment you must log in.
Ignore the title; it has nothing to do with what this branch is actually about. This branch contains fixes for miscellaneous bugs I found while integrating multiversion lazr.restful into Launchpad.
The "list(versions)" code fixes a failure that happens when you run lazr.restful under Python 2.5 (as Launchpad does). The incoming list of versions is a tuple object, and tuple objects don't implement index() until 2.6.
The change to metazcml.py fixes a failure that happens when you publish both an interface and a subclass of that interface. The superclass and subclass both publish the same Method object as a named operation, which was causing a ZCML conflict. I changed the ZCML discriminator to include the interface object, making it possible for two classes to publish the same method. I added a subclass of ICookbook to the example web service to test this.