From: david-sarah Date: Tue, 20 Sep 2011 03:01:56 +0000 (-0700) Subject: uri.py: fix two interface violations in verifier URI classes. refs #1474 X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/frontends/FTP-and-SFTP.txt?a=commitdiff_plain;h=87a936564e393a2e216ab09ccff4cdb71f010ee2;p=tahoe-lafs%2Ftahoe-lafs.git uri.py: fix two interface violations in verifier URI classes. refs #1474 --- diff --git a/src/allmydata/uri.py b/src/allmydata/uri.py index 5da7c0a6..62bf9b9a 100644 --- a/src/allmydata/uri.py +++ b/src/allmydata/uri.py @@ -826,6 +826,13 @@ class MDMFDirectoryURIVerifier(_DirectoryBaseURI): def is_mutable(self): return False + def is_readonly(self): + return True + + def get_readonly(self): + return self + + class DirectoryURIVerifier(_DirectoryBaseURI): implements(IVerifierURI) @@ -845,6 +852,12 @@ class DirectoryURIVerifier(_DirectoryBaseURI): def is_mutable(self): return False + def is_readonly(self): + return True + + def get_readonly(self): + return self + class ImmutableDirectoryURIVerifier(DirectoryURIVerifier): implements(IVerifierURI)