[tahoe-lafs-trac-stream] [Tahoe-LAFS] #3428: twisted.web.resource.Resource subclasses should not return Deferreds
Tahoe-LAFS
trac at tahoe-lafs.org
Fri Sep 18 18:04:34 UTC 2020
#3428: twisted.web.resource.Resource subclasses should not return Deferreds
---------------------+---------------------------
Reporter: exarkun | Owner:
Type: defect | Status: new
Priority: normal | Milestone: undecided
Component: unknown | Version: n/a
Keywords: | Launchpad Bug:
---------------------+---------------------------
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.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3428>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list