mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-12 07:52:38 +00:00
Remove now-unnecessary UploadResultsPage.render_UPLOAD
This commit is contained in:
parent
44ecfdad09
commit
8331e7d8ec
@ -87,23 +87,6 @@ class UploadResultsPage(Resource, object):
|
|||||||
elem = UploadResultsElement(self._upload_results)
|
elem = UploadResultsElement(self._upload_results)
|
||||||
return renderElement(req, elem)
|
return renderElement(req, elem)
|
||||||
|
|
||||||
# This is weird but necessary because:
|
|
||||||
#
|
|
||||||
# 1. MultiFormatResource.render() uses argument "t" to figure out
|
|
||||||
# its output format.
|
|
||||||
#
|
|
||||||
# 2. Upload request is of the form "POST /uri?t=upload&file=newfile".
|
|
||||||
# See URIHandler.render_POST().
|
|
||||||
#
|
|
||||||
# MultiFormatResource.render() looks up "t" argument, which in
|
|
||||||
# this case has the value "upload", and then it would look for a
|
|
||||||
# render_UPLOAD() method.
|
|
||||||
#
|
|
||||||
# We could change upload request to use more descriptive names
|
|
||||||
# that do not cause name collisions like this. That should be a
|
|
||||||
# separate change though.
|
|
||||||
render_UPLOAD = render_HTML
|
|
||||||
|
|
||||||
|
|
||||||
class UploadResultsElement(status.UploadResultsRendererMixin):
|
class UploadResultsElement(status.UploadResultsRendererMixin):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user