From: Kevan Carstensen Date: Tue, 2 Aug 2011 01:49:26 +0000 (-0700) Subject: nodemaker: teach nodemaker about MDMF caps X-Git-Tag: trac-5200~27 X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/sub?a=commitdiff_plain;h=893a9028f0c43fdefdfc50d577036cb7fb6a55ef;p=tahoe-lafs%2Ftahoe-lafs.git nodemaker: teach nodemaker about MDMF caps --- diff --git a/src/allmydata/nodemaker.py b/src/allmydata/nodemaker.py index 50c04e9e..fb69ea58 100644 --- a/src/allmydata/nodemaker.py +++ b/src/allmydata/nodemaker.py @@ -79,12 +79,15 @@ class NodeMaker: return self._create_immutable(cap) if isinstance(cap, uri.CHKFileVerifierURI): return self._create_immutable_verifier(cap) - if isinstance(cap, (uri.ReadonlySSKFileURI, uri.WriteableSSKFileURI)): + if isinstance(cap, (uri.ReadonlySSKFileURI, uri.WriteableSSKFileURI, + uri.WritableMDMFFileURI, uri.ReadonlyMDMFFileURI)): return self._create_mutable(cap) if isinstance(cap, (uri.DirectoryURI, uri.ReadonlyDirectoryURI, uri.ImmutableDirectoryURI, - uri.LiteralDirectoryURI)): + uri.LiteralDirectoryURI, + uri.MDMFDirectoryURI, + uri.ReadonlyMDMFDirectoryURI)): filenode = self._create_from_single_cap(cap.get_filenode_cap()) return self._create_dirnode(filenode) return None