mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 03:06:33 +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__()
|
super(LiteralCheckResultsElement, self).__init__()
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def return(self, req, tag):
|
def return_to(self, req, tag):
|
||||||
return_to = get_arg(req, "return_to", None)
|
return_to = get_arg(req, "return_to", None)
|
||||||
if return_to:
|
if return_to:
|
||||||
return tags.div(tags.a("Return to file.", href=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>Literal files are always healthy: their data is contained in the URI</div>
|
||||||
|
|
||||||
<div t:render="return" />
|
<div t:render="return_to" />
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user