wapi: add POST /uri/$DIRECTORY?t=set_children

Unfinished bits: doc in webapi.txt, test handling of badly formed JSON, return reasonable HTTP response, examination of the effect of this patch on code coverage -- but I'm committing it anyway because MikeB can use it and I'm being called to dinner...
This commit is contained in:
Zooko O'Whielacronx
2008-02-29 18:40:27 -07:00
parent 5cdc678d24
commit 99f006c584
6 changed files with 73 additions and 26 deletions

View File

@ -250,7 +250,7 @@ class NewDirectoryNode:
assert isinstance(name, unicode)
return self.set_node(name, self._create_node(child_uri), metadata)
def set_uris(self, entries):
def set_children(self, entries):
node_entries = []
for e in entries:
if len(e) == 2: