From: Brian Warner Date: Thu, 1 Nov 2007 22:03:07 +0000 (-0700) Subject: move NotMutableError from dirnode.py into interfaces.py X-Git-Tag: allmydata-tahoe-0.7.0~333 X-Git-Url: https://git.rkrishnan.org/simplejson/$top_link?a=commitdiff_plain;h=fb3eddafdbb5dafd04f9eaf87a778110a9e60cf4;p=tahoe-lafs%2Ftahoe-lafs.git move NotMutableError from dirnode.py into interfaces.py --- diff --git a/src/allmydata/dirnode.py b/src/allmydata/dirnode.py index 6696b6a0..dbbe18a3 100644 --- a/src/allmydata/dirnode.py +++ b/src/allmydata/dirnode.py @@ -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) diff --git a/src/allmydata/interfaces.py b/src/allmydata/interfaces.py index a9dce100..6cedc8bf 100644 --- a/src/allmydata/interfaces.py +++ b/src/allmydata/interfaces.py @@ -1204,6 +1204,9 @@ class NotCapableError(Exception): class BadWriteEnablerError(Exception): pass +class NotMutableError(Exception): + pass + class RIControlClient(RemoteInterface):