mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-02 03:06:41 +00:00
better style
This commit is contained in:
parent
f4c8eb5e2f
commit
d381d3e92b
@ -217,11 +217,13 @@ class DirectoryNodeHandler(ReplaceMeMixin, Resource, object):
|
|||||||
if not t:
|
if not t:
|
||||||
# render the directory as HTML, using the docFactory and Nevow's
|
# render the directory as HTML, using the docFactory and Nevow's
|
||||||
# whole templating thing.
|
# whole templating thing.
|
||||||
dah = DirectoryAsHTML(
|
return renderElement(
|
||||||
|
req,
|
||||||
|
DirectoryAsHTML(
|
||||||
self.node,
|
self.node,
|
||||||
self.client.mutable_file_default,
|
self.client.mutable_file_default,
|
||||||
)
|
)
|
||||||
return renderElement(req, dah)
|
)
|
||||||
|
|
||||||
if t == "json":
|
if t == "json":
|
||||||
return DirectoryJSONMetadata(req, self.node)
|
return DirectoryJSONMetadata(req, self.node)
|
||||||
|
Loading…
Reference in New Issue
Block a user