From: Zooko O'Whielacronx Date: Sat, 10 Nov 2007 23:37:18 +0000 (-0700) Subject: IMutableFileNode is a subtype of IFileNode X-Git-Tag: allmydata-tahoe-0.7.0~223 X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/COPYING.TGPPL.html?a=commitdiff_plain;h=ae727a550a56be088423360a2a108c087ed2b9b8;p=tahoe-lafs%2Ftahoe-lafs.git IMutableFileNode is a subtype of IFileNode I'm not 100% sure that this is correct, but it looks reasonable, it passes unit tests (although note that unit tests are currently not covering the new mutable files very well), and it makes the "view JSON" link on a directory work instead of raising an assertion error. --- diff --git a/src/allmydata/interfaces.py b/src/allmydata/interfaces.py index 37aad178..3b18dfa0 100644 --- a/src/allmydata/interfaces.py +++ b/src/allmydata/interfaces.py @@ -473,7 +473,7 @@ class IFileNode(Interface): def check(): """Perform a file check. See IChecker.check for details.""" -class IMutableFileNode(Interface): +class IMutableFileNode(IFileNode): def download_to_data(): """Download the file's contents. Return a Deferred that fires with those contents. If there are multiple retrievable versions in the