Make Element the superclass of UploadResultsRendererMixin

This commit is contained in:
Sajith Sasidharan 2020-05-22 21:11:42 -04:00
parent b0e3325d03
commit f8562530be
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ class RateAndTimeMixin(object):
return abbreviate_rate(data)
class UploadResultsRendererMixin(object):
class UploadResultsRendererMixin(Element):
# this requires a method named 'upload_results'
@renderer
@ -198,7 +198,7 @@ class UploadStatusPage(MultiFormatResource):
return renderElement(req, elem)
class UploadStatusElement(Element, UploadResultsRendererMixin):
class UploadStatusElement(UploadResultsRendererMixin):
loader = XMLFile(FilePath(__file__).sibling("upload-status.xhtml"))

View File

@ -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"))