mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-18 23:38:18 +00:00
Let Uploader retain History instead of passing it into upload(). Fixes #1079.
This consistently records all immutable uploads in the Recent Uploads And Downloads page, regardless of code path. Previously, certain webapi upload operations (like PUT /uri/$DIRCAP/newchildname) failed to pass the History object and were left out.
This commit is contained in:
@ -278,7 +278,8 @@ class Client(node.Node, pollmixin.PollMixin):
|
||||
self.history = History(self.stats_provider)
|
||||
self.terminator = Terminator()
|
||||
self.terminator.setServiceParent(self)
|
||||
self.add_service(Uploader(helper_furl, self.stats_provider))
|
||||
self.add_service(Uploader(helper_furl, self.stats_provider,
|
||||
self.history))
|
||||
self.init_stub_client()
|
||||
self.init_blacklist()
|
||||
self.init_nodemaker()
|
||||
@ -513,4 +514,4 @@ class Client(node.Node, pollmixin.PollMixin):
|
||||
|
||||
def upload(self, uploadable):
|
||||
uploader = self.getServiceNamed("uploader")
|
||||
return uploader.upload(uploadable, history=self.get_history())
|
||||
return uploader.upload(uploadable)
|
||||
|
Reference in New Issue
Block a user