move NotMutableError from dirnode.py into interfaces.py

This commit is contained in:
Brian Warner 2007-11-01 15:03:07 -07:00
parent 715a3268cd
commit fb3eddafdb
2 changed files with 4 additions and 5 deletions

View File

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

View File

@ -1204,6 +1204,9 @@ class NotCapableError(Exception):
class BadWriteEnablerError(Exception): class BadWriteEnablerError(Exception):
pass pass
class NotMutableError(Exception):
pass
class RIControlClient(RemoteInterface): class RIControlClient(RemoteInterface):