Merge lp:~leonardr/launchpadlib/instantiate-resource-from-url into lp:~launchpad-pqm/launchpadlib/devel
Proposed by
Leonard Richardson
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~leonardr/launchpadlib/instantiate-resource-from-url |
Merge into: | lp:~launchpad-pqm/launchpadlib/devel |
To merge this branch: | bzr merge lp:~leonardr/launchpadlib/instantiate-resource-from-url |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+728@code.launchpad.net |
To post a comment you must log in.
It all looks good, except that I can't run the tests even after linking it into a current LP tree. I first get a "No module named Mailman.MailList", but I can't believe that's your problem.
> + return Resource. _wrap_resource(
You could do `self._ wrap_resource` here. That might be more appropriate, especially for anyone who wants to subclass this.
> + self._root, wadl_resource, representation, 'application/json',
'application/json' is the default for `representation _media_ type`, but it does no harm I guess.