2013-12-17 | Paul Boddie | raw annotate files changeset graph | Fixed the recipient dictionary format so that different recipient types can be represented properly. Introduced filtering to avoid showing irrelevant recipients for certain operations. Tidied up the HTTP responses when certain operations cannot be performed. |
1 #!/usr/bin/env python 2 3 from MoinMessage import GPG, Message 4 import sys 5 6 if __name__ == "__main__": 7 keyid = sys.argv[1] 8 9 gpg = GPG() 10 key = gpg.exportKey(keyid) 11 key["Update-Action"] = "store" 12 13 message = Message() 14 message.add_update(key) 15 16 # Show the resulting text. 17 18 text = message.get_payload() 19 print text 20 21 # vim: tabstop=4 expandtab shiftwidth=4