aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/tests
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-06-10 11:00:33 +0000
committerJustus Winter <[email protected]>2016-06-16 12:19:17 +0000
commit5464060baef2da8f5ea377118758e451c55e3787 (patch)
tree126889232dc7a91188a9452971b992529dec361c /lang/python/tests
parentpython: Improve the documentation. (diff)
downloadgpgme-5464060baef2da8f5ea377118758e451c55e3787.tar.gz
gpgme-5464060baef2da8f5ea377118758e451c55e3787.zip
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 <[email protected]>
Diffstat (limited to 'lang/python/tests')
0 files changed, 0 insertions, 0 deletions