Merge lp://staging/~cjwatson/lazr.restful/url-dereferencing-better-environ into lp://staging/lazr.restful

Proposed by Colin Watson
Status: Merged
Merged at revision: 246
Proposed branch: lp://staging/~cjwatson/lazr.restful/url-dereferencing-better-environ
Merge into: lp://staging/lazr.restful
Diff against target: 142 lines (+50/-19)
4 files modified
NEWS.rst (+4/-0)
src/lazr/restful/_resource.py (+6/-1)
src/lazr/restful/docs/webservice-marshallers.rst (+13/-0)
src/lazr/restful/marshallers.py (+27/-18)
To merge this branch: bzr merge lp://staging/~cjwatson/lazr.restful/url-dereferencing-better-environ
Reviewer Review Type Date Requested Status
Ioana Lasc (community) Approve
Review via email: mp+386612@code.staging.launchpad.net

Commit message

Make ObjectLookupFieldMarshaller accept URLs that redirect.

Description of the change

The redirected-to resource must have a context attribute that evaluates to the appropriate model object.

Among other things, this makes it more feasible to adjust the URL layout of exported resources.

To post a comment you must log in.
Revision history for this message
Ioana Lasc (ilasc) wrote :

looks good

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches