Merge lp:~awuerl/txjsonrpc/preserve_result into lp:txjsonrpc
Proposed by
Andreas Würl
Status: | Needs review |
---|---|
Proposed branch: | lp:~awuerl/txjsonrpc/preserve_result |
Merge into: | lp:txjsonrpc |
Diff against target: |
76 lines (+19/-1) 2 files modified
txjsonrpc/web/jsonrpc.py (+4/-0) txjsonrpc/web/test/test_jsonrpc.py (+15/-1) |
To merge this branch: | bzr merge lp:~awuerl/txjsonrpc/preserve_result |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Duncan McGreggor | Pending | ||
Review via email: mp+230865@code.launchpad.net |
Description of the change
The current implementation does not allow to cache deferred results in a simple object cache. The result of any deferred is set to None after the rendering callback web.JSONRPC.
This minimal patch fixes this behaviour. Deferreds can now be stored/cached and returned multiple times. The original result will always be available to the caller of the service method.
To post a comment you must log in.
Unmerged revisions
- 97. By Andreas Würl
-
added test
- 96. By Andreas Würl
-
preserve result of deferred