diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2012-12-17 15:25:27 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-12-17 16:32:02 +0200 |
commit | 3a9d39d8795e8130056c1194eb25020be1bdc8b3 (patch) | |
tree | 3b1a87171cb62eaaf024d74aa5cc1f8e7c7eab93 /test | |
parent | 3eadc034c98928423f0f5771c25a8b352e11e267 (diff) | |
download | bluez-3a9d39d8795e8130056c1194eb25020be1bdc8b3.tar.gz |
test: Fix pbap-client to handle PullAll reply properly
PullAll reply consist in 2 parameters, the transfer object followed by
its properties not a structure containing both.
Diffstat (limited to 'test')
-rwxr-xr-x | test/pbap-client | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/pbap-client b/test/pbap-client index fbe930c9b..7be8bad49 100755 --- a/test/pbap-client +++ b/test/pbap-client @@ -33,8 +33,7 @@ class PbapClient: signal_name="Error", path_keyword="path") - def register(self, reply, transfer): - (path, properties) = reply + def register(self, path, properties, transfer): transfer.path = path transfer.filename = properties["Filename"] self.props[path] = transfer @@ -73,15 +72,15 @@ class PbapClient: def pull(self, vcard, params, func): req = Transfer(func) self.pbap.Pull(vcard, "", params, - reply_handler=lambda r: self.register(r, req), - error_handler=self.error) + reply_handler=lambda o, p: self.register(o, p, req), + error_handler=self.error) self.transfers += 1 def pull_all(self, params, func): req = Transfer(func) self.pbap.PullAll("", params, - reply_handler=lambda r: self.register(r, req), - error_handler=self.error) + reply_handler=lambda o, p: self.register(o, p, req), + error_handler=self.error) self.transfers += 1 def flush_transfers(self, func): |