]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
nodemaker: teach nodemaker about MDMF caps
authorKevan Carstensen <kevan@isnotajoke.com>
Tue, 2 Aug 2011 01:49:26 +0000 (18:49 -0700)
committerKevan Carstensen <kevan@isnotajoke.com>
Tue, 2 Aug 2011 01:49:26 +0000 (18:49 -0700)
src/allmydata/nodemaker.py

index 50c04e9e8f4d897a3153072498655f76b0b30ddc..fb69ea585d7916bd17c5e04ba250f807d277e3be 100644 (file)
@@ -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