mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-08 19:34:18 +00:00
Make the immutable/read-only constraint checking for MDMF URIs identical to that for SSK URIs. refs #393
This commit is contained in:
parent
88989a4ea2
commit
3c92b832f2
@ -913,9 +913,13 @@ def from_string(u, deep_immutable=False, name=u"<unknown name>"):
|
||||
elif s.startswith('URI:SSK-Verifier:'):
|
||||
return SSKVerifierURI.init_from_string(s)
|
||||
elif s.startswith('URI:MDMF:'):
|
||||
return WriteableMDMFFileURI.init_from_string(s)
|
||||
if can_be_writeable:
|
||||
return WriteableMDMFFileURI.init_from_string(s)
|
||||
kind = "URI:MDMF file writecap"
|
||||
elif s.startswith('URI:MDMF-RO:'):
|
||||
return ReadonlyMDMFFileURI.init_from_string(s)
|
||||
if can_be_mutable:
|
||||
return ReadonlyMDMFFileURI.init_from_string(s)
|
||||
kind = "URI:MDMF-RO readcap to a mutable file"
|
||||
elif s.startswith('URI:MDMF-Verifier:'):
|
||||
return MDMFVerifierURI.init_from_string(s)
|
||||
elif s.startswith('URI:DIR2:'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user