Ticket #3621 enhancement reopened
twisted.web should allow getChild to return a Deferred.
| Reported by: | radix | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | web | Keywords: | |
| Cc: | Branch: | ||
| Author: | Launchpad Bug: |
Description (last modified by glyph) (diff)
This potentially requires changes to a number of public APIs:
- resource.IResource.getChildWithDefault
- resource.getChildForRequest
- resource.Resource.getChildWithDefault
- resource.Resource.getChild
- server.Site.getChildWithDefault
- server.Site.getResourceFor
Given that these are all public, we mustn't break compatibility with code that invokes them with existing resource objects, as long as those resource objects return resources synchronously. So we could either do a bunch of conditionals to make sure we return resource objects synchronously when no deferreds are returned, or we could just come up with a separate implementation of Request.process that uses a different codepath entirely. If we do the latter, we must make sure we maintain compatibility with users utilizing the various resource hooks.
Related: #3711
Change History
Note: See
TracTickets for help on using
tickets.
