uri.py: fix two interface violations in verifier URI classes. refs #1474
authordavid-sarah <david-sarah@jacaranda.org>
Tue, 20 Sep 2011 03:01:56 +0000 (20:01 -0700)
committerdavid-sarah <david-sarah@jacaranda.org>
Tue, 20 Sep 2011 03:01:56 +0000 (20:01 -0700)
src/allmydata/uri.py

index 5da7c0a6893cccc9e8449827939f1d07a14fef0d..62bf9b9aabd1708bd11dbc2cc3bb708255b15bb0 100644 (file)
@@ -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)