gpgme/lang/python/pyme
Justus Winter d90857a08c python: Robust exception handling in callbacks.
* lang/python/helpers.c (pygpgme_stash_callback_exception): New
function.
(pygpgme_raise_callback_exception): Likewise.
(pyPassphraseCb): Stash python errors.
* lang/python/helpers.h (pygpgme_raise_callback_exception): New
prototype.
* lang/python/pyme/core.py ({Context,Data}.__init__): Move common
initialization to superclass.
(Context.set_progress_cb): Hand in 'self'.
* lang/python/pyme/util.py (GpgmeWrapper.__init__): New function.
(GpgmeWrapper.__getattr__): Raise stashed exceptions.
* lang/python/tests/Makefile.am (py_tests): Add new test.
* lang/python/tests/t-callbacks.py: New file.

Signed-off-by: Justus Winter <justus@gnupg.org>
2016-05-19 15:58:45 +02:00
..
constants python: Rename bindings. 2016-05-10 13:19:26 +02:00
__init__.py python: Clean up examples. 2016-05-17 14:22:22 +02:00
callbacks.py python: Delete trailing whitespace. 2016-05-10 13:30:30 +02:00
core.py python: Robust exception handling in callbacks. 2016-05-19 15:58:45 +02:00
errors.py python: Raise exceptions on write errors. 2016-05-12 18:01:24 +02:00
util.py python: Robust exception handling in callbacks. 2016-05-19 15:58:45 +02:00
version.py python: Rename bindings. 2016-05-10 13:19:26 +02:00