From 893a9028f0c43fdefdfc50d577036cb7fb6a55ef Mon Sep 17 00:00:00 2001 From: Kevan Carstensen <kevan@isnotajoke.com> Date: Mon, 1 Aug 2011 18:49:26 -0700 Subject: [PATCH] nodemaker: teach nodemaker about MDMF caps --- src/allmydata/nodemaker.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.45.2