2014-01-12 | Paul Boddie | raw annotate files changeset graph | Updated the action to use the MessageInterface abstraction. Made the getfiles script use the command language. Introduced specific content types for command sequences and responses. Reversed the order of operations in the getfiles script to be compatible with the action (so that signing occurs before encryption). |
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