webish: handle PUTs to direct children of the root

This commit is contained in:
Brian Warner 2007-07-13 19:31:52 -07:00
parent 8a39ee9034
commit a290205ade

View 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)