mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 13:33:09 +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(
|
||||
self.node,
|
||||
self.client.mutable_file_default,
|
||||
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