mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-12 07:52:38 +00:00
Make Element the superclass of UploadResultsRendererMixin
This commit is contained in:
parent
4b560d10cc
commit
f30dcc7ec6
@ -45,7 +45,7 @@ class RateAndTimeMixin(object):
|
||||
return abbreviate_rate(data)
|
||||
|
||||
|
||||
class UploadResultsRendererMixin(object):
|
||||
class UploadResultsRendererMixin(Element):
|
||||
# this requires a method named 'upload_results'
|
||||
|
||||
@renderer
|
||||
@ -207,7 +207,7 @@ class UploadStatusPage(MultiFormatResource):
|
||||
return renderElement(req, elem)
|
||||
|
||||
|
||||
class UploadStatusElement(Element, UploadResultsRendererMixin):
|
||||
class UploadStatusElement(UploadResultsRendererMixin):
|
||||
|
||||
loader = XMLFile(FilePath(__file__).sibling("upload-status.xhtml"))
|
||||
|
||||
|
@ -106,7 +106,7 @@ class UploadResultsPage(MultiFormatResource):
|
||||
render_UPLOAD = render_HTML
|
||||
|
||||
|
||||
class UploadResultsElement(Element, status.UploadResultsRendererMixin):
|
||||
class UploadResultsElement(status.UploadResultsRendererMixin):
|
||||
|
||||
loader = XMLFile(FilePath(__file__).sibling("upload-results.xhtml"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user