From 87a936564e393a2e216ab09ccff4cdb71f010ee2 Mon Sep 17 00:00:00 2001 From: david-sarah Date: Mon, 19 Sep 2011 20:01:56 -0700 Subject: [PATCH] uri.py: fix two interface violations in verifier URI classes. refs #1474 --- src/allmydata/uri.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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) -- 2.45.2