upload: move upload history into History object

This commit is contained in:
Brian Warner
2009-01-14 16:41:06 -07:00
parent 3920e6d1e7
commit 10268a4f7f
3 changed files with 19 additions and 20 deletions

View File

@ -411,12 +411,11 @@ class Client(node.Node, pollmixin.PollMixin):
def upload(self, uploadable):
uploader = self.getServiceNamed("uploader")
return uploader.upload(uploadable)
return uploader.upload(uploadable, history=self.get_history())
def list_all_upload_statuses(self):
uploader = self.getServiceNamed("uploader")
return uploader.list_all_upload_statuses()
return self.get_history().list_all_upload_statuses()
def list_all_download_statuses(self):
return self.get_history().list_all_download_statuses()