Make Element the superclass of UploadResultsRendererMixin

This commit is contained in:
Sajith Sasidharan 2020-05-22 21:11:42 -04:00 committed by Sajith Sasidharan
parent 4b560d10cc
commit f30dcc7ec6
2 changed files with 3 additions and 3 deletions

View File

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

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