upload: pass options through to the encoder

This commit is contained in:
Brian Warner
2008-01-14 21:17:32 -07:00
parent cb76ed36f9
commit e65967da49
2 changed files with 5 additions and 4 deletions

View File

@ -253,7 +253,7 @@ class Client(node.Node, Referenceable, testutil.PollMixin):
d.addCallback(lambda res: n)
return d
def upload(self, uploadable):
def upload(self, uploadable, options={}):
uploader = self.getServiceNamed("uploader")
return uploader.upload(uploadable)
return uploader.upload(uploadable, options)