]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
upload: oops, fix breakage after removing upload_file/upload_data/etc
authorBrian Warner <warner@allmydata.com>
Thu, 31 Jan 2008 02:41:43 +0000 (19:41 -0700)
committerBrian Warner <warner@allmydata.com>
Thu, 31 Jan 2008 02:41:43 +0000 (19:41 -0700)
src/allmydata/interfaces.py
src/allmydata/test/check_memory.py

index bbc354ee4fff53ede45114b5a752a6882d6d39fb..604b59617e4202bfd62db1f9072131b2a93ddb0f 100644 (file)
@@ -1107,14 +1107,6 @@ class IUploader(Interface):
 
     def upload_ssk(write_capability, new_version, uploadable):
         """TODO: how should this work?"""
-    def upload_data(data):
-        """Like upload(), but accepts a string."""
-
-    def upload_filename(filename):
-        """Like upload(), but accepts an absolute pathname."""
-
-    def upload_filehandle(filehane):
-        """Like upload(), but accepts an open filehandle."""
 
 class IChecker(Interface):
     def check(uri_to_check):
index e45fabb34006c3447fb09a260d14a3bc4ac4c163..53977d91d1035fa2c6b5c99a0c33e2a5e59f2efd 100644 (file)
@@ -5,7 +5,7 @@ from cStringIO import StringIO
 from twisted.internet import defer, reactor, protocol, error
 from twisted.application import service, internet
 from twisted.web import client as tw_client
-from allmydata import client, introducer
+from allmydata import client, introducer, upload
 from allmydata.scripts import create_node
 from allmydata.util import testutil, fileutil
 import foolscap
@@ -393,7 +393,7 @@ this file are ignored.
             files[name] = self.create_data(name, size)
             u = self.nodes[0].getServiceNamed("uploader")
             d = self.nodes[0].debug_wait_for_client_connections(self.numnodes+1)
-            d.addCallback(lambda res: u.upload_filename(files[name]))
+            d.addCallback(lambda res: u.upload(upload.FileName(files[name])))
         else:
             raise RuntimeError("unknown mode=%s" % self.mode)
         def _complete(uri):