Opened at 2020-09-18T18:04:34Z
Closed at 2020-10-21T14:05:18Z
#3428 closed defect (fixed)
twisted.web.resource.Resource subclasses should not return Deferreds
Reported by: | exarkun | Owned by: | GitHub <noreply@…> |
---|---|---|---|
Priority: | normal | Milestone: | undecided |
Component: | unknown | Version: | n/a |
Keywords: | review | Cc: | |
Launchpad Bug: |
Description
Twisted Web supports a Deferred return value from neither Resource.getChild nor Resource.render. allmydata/web/ contains a number of Resource subclasses which were switched away from Nevow Page - which *does* support a Deferred result from these methods.
The Resource subclasses still work because Nevow's "appserver" is still being used but as soon as that is switched to Twisted's "Site" this code will all break.
To make that transition as smooth as possible, change all of this application code away from returning Deferred.
Change History (4)
comment:1 Changed at 2020-10-14T17:15:21Z by exarkun
- Owner set to exarkun
- Status changed from new to assigned
comment:2 Changed at 2020-10-16T14:03:31Z by exarkun
- Keywords review added
comment:3 Changed at 2020-10-16T18:36:53Z by exarkun
- Owner exarkun deleted
- Status changed from assigned to new
comment:4 Changed at 2020-10-21T14:05:18Z by GitHub <noreply@…>
- Owner set to GitHub <noreply@…>
- Resolution set to fixed
- Status changed from new to closed
In fb45289/trunk:
Note: See
TracTickets for help on using
tickets.
https://github.com/tahoe-lafs/tahoe-lafs/pull/864