uploader = self.getServiceNamed("uploader")
return uploader.upload(uploadable)
+ def list_uploads(self):
+ uploader = self.getServiceNamed("uploader")
+ return uploader.list_uploads()
+
+ def list_downloads(self):
+ downloader = self.getServiceNamed("downloader")
+ return downloader.list_downloads()
return self.download(uri, FileHandle(filehandle))
+ def list_downloads(self):
+ return self._all_downloads.keys()
IDirectoryNode-providing instances, like NewDirectoryNode.
"""
+class IClientStatus(Interface):
+ def list_uploads():
+ """Return a list of IUploadStatus objects, one for each
+ upload which is currently running."""
+ def list_downloads():
+ """Return a list of IDownloadStatus objects, one for each
+ download which is currently running."""
+
class IUploadStatus(Interface):
def get_storage_index():
"""Return a string with the (binary) storage index in use on this
return res
d.addBoth(_done)
return d
+
+ def list_uploads(self):
+ return self._all_uploads.keys()