mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-18 18:56:28 +00:00
Avoid using a Python keyword as a renderer name
This commit is contained in:
parent
3901559e34
commit
c15001269f
@ -232,7 +232,7 @@ class LiteralCheckResultsElement(Element):
|
||||
super(LiteralCheckResultsElement, self).__init__()
|
||||
|
||||
@renderer
|
||||
def return(self, req, tag):
|
||||
def return_to(self, req, tag):
|
||||
return_to = get_arg(req, "return_to", None)
|
||||
if return_to:
|
||||
return tags.div(tags.a("Return to file.", href=return_to))
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
<div>Literal files are always healthy: their data is contained in the URI</div>
|
||||
|
||||
<div t:render="return" />
|
||||
<div t:render="return_to" />
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user