projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e69b94
)
uri.py: fix two interface violations in verifier URI classes. refs #1474
author
david-sarah
<david-sarah@jacaranda.org>
Tue, 20 Sep 2011 03:01:56 +0000
(20:01 -0700)
committer
david-sarah
<david-sarah@jacaranda.org>
Tue, 20 Sep 2011 03:01:56 +0000
(20:01 -0700)
src/allmydata/uri.py
patch
|
blob
|
history
diff --git
a/src/allmydata/uri.py
b/src/allmydata/uri.py
index 5da7c0a6893cccc9e8449827939f1d07a14fef0d..62bf9b9aabd1708bd11dbc2cc3bb708255b15bb0 100644
(file)
--- 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)