mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-30 01:38:55 +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:
|
||||
# render the directory as HTML, using the docFactory and Nevow's
|
||||
# whole templating thing.
|
||||
dah = DirectoryAsHTML(
|
||||
return renderElement(
|
||||
req,
|
||||
DirectoryAsHTML(
|
||||
self.node,
|
||||
self.client.mutable_file_default,
|
||||
)
|
||||
return renderElement(req, dah)
|
||||
)
|
||||
|
||||
if t == "json":
|
||||
return DirectoryJSONMetadata(req, self.node)
|
||||
|
Loading…
Reference in New Issue
Block a user