diff options
author | Justus Winter <[email protected]> | 2016-05-27 12:04:28 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-05-27 12:04:28 +0000 |
commit | 2ae847c02731994d99e69d3d025ff01f41406452 (patch) | |
tree | 71a4609243a69a10fced3a512715f1a4e915cc6a /lang/python/tests/t-encrypt-large.py | |
parent | python: Fix object deallocation. (diff) | |
download | gpgme-2ae847c02731994d99e69d3d025ff01f41406452.tar.gz gpgme-2ae847c02731994d99e69d3d025ff01f41406452.zip |
python: Implement data callbacks.
* lang/python/gpgme.i (object_to_gpgme_t): Set exception on error.
* lang/python/helpers.c (pyDataReadCb): New function.
(pyDataWriteCb): Likewise.
(pyDataSeekCb): Likewise.
(pyDataReleaseCb): Likewise.
(pygpgme_data_new_from_cbs): Likewise.
* lang/python/helpers.h (pygpgme_data_new_from_cbs): New prototype.
* lang/python/pyme/core.py (Data.__init__): Fix docstring, fix read
callbacks.
(Data.__del__): Fix read callbacks.
(Data._free_readcb): Drop function.
(Data._free_datacbs): New function.
(Data.new_from_cbs): Fix setting the callbacks.
(Data.write): Raise stashed exceptions.
(Data.read): Likewise.
* lang/python/tests/t-callbacks.py: Test new functionality.
* lang/python/tests/t-data.py: Likewise.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'lang/python/tests/t-encrypt-large.py')
0 files changed, 0 insertions, 0 deletions