Merge lp:~leonardr/lazr.restful/wsgi.improvements.1 into lp:lazr.restful
Proposed by
Leonard Richardson
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~leonardr/lazr.restful/wsgi.improvements.1 |
Merge into: | lp:lazr.restful |
Diff against target: | None lines |
To merge this branch: | bzr merge lp:~leonardr/lazr.restful/wsgi.improvements.1 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Deryck Hodge (community) | Approve | ||
Review via email: mp+9652@code.launchpad.net |
To post a comment you must log in.
This branch does some minor cleanup of lazr.restful to reduce the amount of code in the example web services.
1. I changed some README files to point to the lazr.restful. example. wsgi README, which is the best place to get started learning about lazr.restful. (This was something gary requested while reviewing an earlier branch, that I didn't carry out.)
2. I removed example/ wsgi/initialize .py, which wasn't used anywhere.
3. I changed SimplePublication into a mixin, and created a new SimplePublication that included it along with the WebServicePubli cationMixin. This removed the need to create new publication classes that included both SimplePublication and WebServicePubli cationMixin. I got rid of now-redundant publication classes in lazr.restful. example. wsgi, and slightly simplified the publication class in lazr.restful. testing. webservice.
(Why make SimplePublication a mixin? Why not just make it mix in WebServicePubli cationMixin? Because SP.traverseName() expects to be the super() of WSPM. If SP mixes in WSPM, WSPM.traverseName() will be the super() of SP.traverseName(), and the code won't work.)