Add property client to CheckAndRepairResultsRendererElement

This commit is contained in:
Sajith Sasidharan 2020-06-04 19:04:42 -04:00
parent 19db5fb312
commit 7237fef630

View File

@ -357,7 +357,7 @@ class CheckAndRepairResultsRenderer(MultiFormatResource):
self.r = ICheckAndRepairResults(results)
def render_HTML(self, req):
elem = CheckAndRepairResultsRendererElement(self.r)
elem = CheckAndRepairResultsRendererElement(self.client, self.r)
return renderElement(req, elem)
def render_JSON(self, req):
@ -370,8 +370,9 @@ class CheckAndRepairResultsRendererElement(Element, CheckerBase, ResultsBase):
loader = XMLFile(FilePath(__file__).sibling("check-and-repair-results.xhtml"))
def __init__(self, r):
def __init__(self, client, r):
super(CheckAndRepairResultsRendererElement, self).__init__()
self.client = client
self.r = r
@renderer