from allmydata.control import ControlServer
from allmydata.introducer import IntroducerClient
from allmydata.util import hashutil, idlib, testutil, observer
-from allmydata.util.assertutil import precondition
from allmydata.filenode import FileNode
from allmydata.dirnode2 import NewDirectoryNode
from allmydata.mutable import MutableFileNode
from zope.interface import implements
from twisted.internet import defer
-from twisted.python import log
import simplejson
from allmydata.mutable import NotMutableError
from allmydata.interfaces import IMutableFileNode, IDirectoryNode,\
- INewDirectoryURI, IURI, IFileNode, \
+ IURI, IFileNode, \
IVerifierURI
from allmydata.util import hashutil
from allmydata.util.hashutil import netstring
from foolscap import Referenceable
from twisted.application import service
from twisted.internet import defer
-from twisted.python import log
from zope.interface import implements
from allmydata.interfaces import RIStorageServer, RIBucketWriter, \
from allmydata.dirnode2 import split_netstring
from allmydata.util.hashutil import netstring, tagged_hash
from allmydata.encode import NotEnoughPeersError
-from allmydata.interfaces import IURI, INewDirectoryURI, IDirnodeURI, \
+from allmydata.interfaces import IURI, INewDirectoryURI, \
IMutableFileURI
import sha
mutable.MutableFileNode.init_from_uri(self, myuri)
return self
def replace(self, newdata, wait_for_numpeers=None):
- self.all_contents[self.get_uri()] = initial_contents
+ self.all_contents[self.get_uri()] = newdata
return defer.succeed(self)
def _generate_pubprivkeys(self):
count = self.counter.next()
from twisted.python import usage, runtime
from twisted.internet import defer
import os.path
-from allmydata.scripts import runner, debug
+from allmydata.scripts import runner
from allmydata.util import fileutil, testutil
class CreateNode(unittest.TestCase):
d.addErrback(_trap_KeyError)
return d
elif segments[0] == "xmlrpc":
- raise NotYetImplementedError()
+ raise NotImplementedError()
return rend.Page.locateChild(self, ctx, segments)
child_webform_css = webform.defaultCSS