python: Adapt to 'gpgme_op_interact'.
authorJustus Winter <justus@g10code.com>
Fri, 16 Sep 2016 12:56:29 +0000 (14:56 +0200)
committerJustus Winter <justus@g10code.com>
Fri, 16 Sep 2016 12:56:29 +0000 (14:56 +0200)
commita458e7fe2006d92bd5a838e2747fb66bbac4b1b8
tree7460cc8f3ba21fec51a0a706f17747887ef37d96
parent5259f9de465d683d93268359cf19ce3a8d151566
python: Adapt to 'gpgme_op_interact'.

* lang/python/examples/inter-edit.py: Update example.
* lang/python/gpgme.i (gpgme_edit_cb_t): Turn into
'gpgme_interact_cb_t'.
* lang/python/helpers.c (_pyme_edit_cb): Turn into
'_pyme_interact_cb_t'.
* lang/python/private.h (_pyme_edit_cb): Likewise.
* lang/python/pyme/constants/__init__.py: Replace numeric status codes
with the keywords.
* lang/python/pyme/constants/status.py: Likewise.
* lang/python/pyme/core.py (Context.interact): New method.
(Context.op_edit): Deprecate, update docstring, implement using
Context.interact.
* lang/python/tests/t-edit.py: Test both interfaces.

Signed-off-by: Justus Winter <justus@g10code.com>
lang/python/examples/inter-edit.py
lang/python/gpgme.i
lang/python/helpers.c
lang/python/private.h
lang/python/pyme/constants/__init__.py
lang/python/pyme/constants/status.py
lang/python/pyme/core.py
lang/python/tests/t-edit.py