]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit - src/allmydata/interfaces.py
client.create_mutable_file(contents=) now accepts a callable, which is
authorBrian Warner <warner@lothar.com>
Tue, 13 Oct 2009 03:12:32 +0000 (20:12 -0700)
committerBrian Warner <warner@lothar.com>
Tue, 13 Oct 2009 03:12:32 +0000 (20:12 -0700)
commitc2520e4ec76195fb559834cd1f7509a7ca20d9d7
tree90f28662244850a6fd348af6ae17151397238b67
parentb30041c5ecf3e2b6d1b6d0b489daf626abd84fd2
client.create_mutable_file(contents=) now accepts a callable, which is
invoked with the new MutableFileNode and is supposed to return the initial
contents. This can be used by e.g. a new dirnode which needs the filenode's
writekey to encrypt its initial children.

create_mutable_file() still accepts a bytestring too, or None for an empty
file.
src/allmydata/client.py
src/allmydata/interfaces.py
src/allmydata/mutable/filenode.py
src/allmydata/nodemaker.py
src/allmydata/test/test_mutable.py