mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-03 17:50:39 +00:00
Make UploadStatusPage a Resource
This commit is contained in:
parent
38fe7dd3f5
commit
62e803db25
@ -192,7 +192,7 @@ class UploadResultsRendererMixin(Element):
|
||||
return d
|
||||
|
||||
|
||||
class UploadStatusPage(MultiFormatResource):
|
||||
class UploadStatusPage(Resource, object):
|
||||
"""Renders /status/up-%d."""
|
||||
|
||||
def __init__(self, upload_status):
|
||||
@ -202,7 +202,7 @@ class UploadStatusPage(MultiFormatResource):
|
||||
super(UploadStatusPage, self).__init__()
|
||||
self._upload_status = upload_status
|
||||
|
||||
def render_HTML(self, req):
|
||||
def render_GET(self, req):
|
||||
elem = UploadStatusElement(self._upload_status)
|
||||
return renderElement(req, elem)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user