]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
move NotMutableError from dirnode.py into interfaces.py
authorBrian Warner <warner@allmydata.com>
Thu, 1 Nov 2007 22:03:07 +0000 (15:03 -0700)
committerBrian Warner <warner@allmydata.com>
Thu, 1 Nov 2007 22:03:07 +0000 (15:03 -0700)
src/allmydata/dirnode.py
src/allmydata/interfaces.py

index 6696b6a0cb01070e362c5efc76c469fa393403e9..dbbe18a3be5e1809d93f67a45d6a4c6605166a59 100644 (file)
@@ -7,7 +7,7 @@ from foolscap import Referenceable
 from allmydata import uri
 from allmydata.interfaces import RIVirtualDriveServer, \
      IDirectoryNode, IFileNode, IFileURI, IDirnodeURI, IURI, \
-     BadWriteEnablerError
+     BadWriteEnablerError, NotMutableError
 from allmydata.util import bencode, idlib, hashutil, fileutil
 from allmydata.Crypto.Cipher import AES
 
@@ -116,10 +116,6 @@ class VirtualDriveServer(service.MultiService, Referenceable):
 # whereas ImmutableDirectoryNodes and their support mechanisms live on the
 # client side
 
-class NotMutableError(Exception):
-    pass
-
-
 def create_directory_node(client, diruri):
     u = IURI(diruri)
     assert IDirnodeURI.providedBy(u)
index a9dce1006a3fa6fdda5a53e3fa6bb2b4671c88ad..6cedc8bf0530f0c6d685f001283cb4a7a2918612 100644 (file)
@@ -1204,6 +1204,9 @@ class NotCapableError(Exception):
 class BadWriteEnablerError(Exception):
     pass
 
+class NotMutableError(Exception):
+    pass
+
 
 class RIControlClient(RemoteInterface):