mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-12 07:52:38 +00:00
Add property client to CheckAndRepairResultsRendererElement
This commit is contained in:
parent
19db5fb312
commit
7237fef630
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user