mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-01 00:45:52 +00:00
Render self in DirectoryNodeHandler.getChild()
We need self.render_POST() etc. to be invoked when we have a request such as "POST /uri/URI:DIR:..."; throwing an error here is probably not the right thing to do.
This commit is contained in:
parent
7444d6b7a9
commit
5892eae580
@ -103,12 +103,10 @@ class DirectoryNodeHandler(ReplaceMeMixin, Resource, object):
|
|||||||
# for these nodes, which is that a URI like
|
# for these nodes, which is that a URI like
|
||||||
# "/uri/URI%3ADIR2%3Aj...vq/" (that is, with a trailing slash
|
# "/uri/URI%3ADIR2%3Aj...vq/" (that is, with a trailing slash
|
||||||
# or no further children) renders "this" page
|
# or no further children) renders "this" page
|
||||||
name = name.decode('utf8')
|
|
||||||
if not name:
|
if not name:
|
||||||
raise EmptyPathnameComponentError(
|
return self
|
||||||
u"The webapi does not allow empty pathname components",
|
|
||||||
)
|
|
||||||
|
|
||||||
|
name = name.decode('utf8')
|
||||||
d = self.node.get(name)
|
d = self.node.get(name)
|
||||||
d.addBoth(self._got_child, req, name)
|
d.addBoth(self._got_child, req, name)
|
||||||
return d
|
return d
|
||||||
|
Loading…
x
Reference in New Issue
Block a user