gpgme/lang/python/pyme
Justus Winter 5464060bae python: Add properties to wrapped object.
* lang/python/pyme/core.py (GpgmeWrapper.__repr__): Saner
representation.
(GpgmeWrapper.__str__): Construct a nicer human readable string.
(GpgmeWrapper._boolean_properties): New field.
(GpgmeWrapper.__wrap_boolean_property): New function.
(GpgmeWrapper.__getattr__): Wrap functions using properties.
(GpgmeWrapper.__setattr__): New method.  Likewise wrap functions.
(Context.signers): New property.
(Context.pinentry_mode): Likewise.
(Context._boolean_properties): List boolean properties.
(Context.__init__): Add keyword arguments for properties and apply
them.

Signed-off-by: Justus Winter <justus@g10code.com>
2016-06-16 14:19:17 +02:00
..
constants python: Drop obsolete VCS keywords. 2016-06-06 14:16:01 +02:00
__init__.py python: Improve the documentation. 2016-06-16 14:07:41 +02:00
callbacks.py python: Drop obsolete VCS keywords. 2016-06-06 14:16:01 +02:00
core.py python: Add properties to wrapped object. 2016-06-16 14:19:17 +02:00
errors.py python: Drop obsolete VCS keywords. 2016-06-06 14:16:01 +02:00
util.py python: Drop obsolete VCS keywords. 2016-06-06 14:16:01 +02:00
version.py.in python: Get version information from the build system. 2016-06-16 14:07:41 +02:00