]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
update many dirnode interfaces to accept dict-of-nodes instead of dict-of-caps
authorBrian Warner <warner@lothar.com>
Sat, 17 Oct 2009 19:28:29 +0000 (12:28 -0700)
committerBrian Warner <warner@lothar.com>
Sat, 17 Oct 2009 19:28:29 +0000 (12:28 -0700)
commitb4ec86c95a64d9114444b45cbe0ecbb3a334c5bc
tree34c7007bb93b4de9c6d73a3e903fb59496b94fc3
parent8a7c980e3765f89c4aa1c1a211fd7a9f7a1f479b
update many dirnode interfaces to accept dict-of-nodes instead of dict-of-caps

interfaces.py: define INodeMaker, document argument values, change
               create_new_mutable_directory() to take dict-of-nodes. Change
               dirnode.set_nodes() and dirnode.create_subdirectory() too.
nodemaker.py: use INodeMaker, update create_new_mutable_directory()
client.py: have create_dirnode() delegate initial_children= to nodemaker
dirnode.py (Adder): take dict-of-nodes instead of list-of-nodes, which
                    updates set_nodes() and create_subdirectory()
web/common.py (convert_initial_children_json): create dict-of-nodes
web/directory.py: same
web/unlinked.py: same
test_dirnode.py: update tests to match
src/allmydata/client.py
src/allmydata/dirnode.py
src/allmydata/interfaces.py
src/allmydata/nodemaker.py
src/allmydata/test/test_dirnode.py
src/allmydata/web/common.py
src/allmydata/web/directory.py
src/allmydata/web/unlinked.py