]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
webish: handle PUTs to direct children of the root
authorBrian Warner <warner@lothar.com>
Sat, 14 Jul 2007 02:31:52 +0000 (19:31 -0700)
committerBrian Warner <warner@lothar.com>
Sat, 14 Jul 2007 02:31:52 +0000 (19:31 -0700)
src/allmydata/webish.py

index 402a2775374f4f7bf89e51883b212fd467727305..fc7bd4b1c883358c5af8fe24815c8dab5416fe67 100644 (file)
@@ -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)