From: Brian Warner Date: Sat, 14 Jul 2007 02:31:52 +0000 (-0700) Subject: webish: handle PUTs to direct children of the root X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=a290205ade6beaae7aeab4a173e8529c65778d48;p=tahoe-lafs%2Ftahoe-lafs.git webish: handle PUTs to direct children of the root --- diff --git a/src/allmydata/webish.py b/src/allmydata/webish.py index 402a2775..fc7bd4b1 100644 --- a/src/allmydata/webish.py +++ b/src/allmydata/webish.py @@ -624,7 +624,7 @@ class PUTHandler(rend.Page): if not IDirectoryNode.providedBy(node): raise BlockingFileError if not path: - return node + return defer.succeed(node) d = node.get(path[0]) def _maybe_create(f): f.trap(KeyError)