python: Adapt to 'gpgme_op_interact'.
[gpgme.git] / lang / python / pyme / constants / __init__.py
1
2 from __future__ import absolute_import, print_function, unicode_literals
3 del absolute_import, print_function, unicode_literals
4
5 from pyme import util
6 util.process_constants('GPGME_', globals())
7
8 __all__ = ['data', 'event', 'import', 'keylist', 'md', 'pk',
9            'protocol', 'sig', 'sigsum', 'status', 'validity']
10
11 # GPGME 1.7 replaced gpgme_op_edit with gpgme_op_interact.  We
12 # implement pyme.Context.op_edit using gpgme_op_interact, so the
13 # callbacks will be called with string keywords instead of numeric
14 # status messages.  Code that is using these constants will continue
15 # to work.
16
17 STATUS_ABORT = "ABORT"
18 STATUS_ALREADY_SIGNED = "ALREADY_SIGNED"
19 STATUS_ATTRIBUTE = "ATTRIBUTE"
20 STATUS_BACKUP_KEY_CREATED = "BACKUP_KEY_CREATED"
21 STATUS_BAD_PASSPHRASE = "BAD_PASSPHRASE"
22 STATUS_BADARMOR = "BADARMOR"
23 STATUS_BADMDC = "BADMDC"
24 STATUS_BADSIG = "BADSIG"
25 STATUS_BEGIN_DECRYPTION = "BEGIN_DECRYPTION"
26 STATUS_BEGIN_ENCRYPTION = "BEGIN_ENCRYPTION"
27 STATUS_BEGIN_SIGNING = "BEGIN_SIGNING"
28 STATUS_BEGIN_STREAM = "BEGIN_STREAM"
29 STATUS_CARDCTRL = "CARDCTRL"
30 STATUS_DECRYPTION_FAILED = "DECRYPTION_FAILED"
31 STATUS_DECRYPTION_INFO = "DECRYPTION_INFO"
32 STATUS_DECRYPTION_OKAY = "DECRYPTION_OKAY"
33 STATUS_DELETE_PROBLEM = "DELETE_PROBLEM"
34 STATUS_ENC_TO = "ENC_TO"
35 STATUS_END_DECRYPTION = "END_DECRYPTION"
36 STATUS_END_ENCRYPTION = "END_ENCRYPTION"
37 STATUS_END_STREAM = "END_STREAM"
38 STATUS_ENTER = "ENTER"
39 STATUS_ERRMDC = "ERRMDC"
40 STATUS_ERROR = "ERROR"
41 STATUS_ERRSIG = "ERRSIG"
42 STATUS_EXPKEYSIG = "EXPKEYSIG"
43 STATUS_EXPSIG = "EXPSIG"
44 STATUS_FAILURE = "FAILURE"
45 STATUS_FILE_DONE = "FILE_DONE"
46 STATUS_FILE_ERROR = "FILE_ERROR"
47 STATUS_FILE_START = "FILE_START"
48 STATUS_GET_BOOL = "GET_BOOL"
49 STATUS_GET_HIDDEN = "GET_HIDDEN"
50 STATUS_GET_LINE = "GET_LINE"
51 STATUS_GOOD_PASSPHRASE = "GOOD_PASSPHRASE"
52 STATUS_GOODMDC = "GOODMDC"
53 STATUS_GOODSIG = "GOODSIG"
54 STATUS_GOT_IT = "GOT_IT"
55 STATUS_IMPORT_OK = "IMPORT_OK"
56 STATUS_IMPORT_PROBLEM = "IMPORT_PROBLEM"
57 STATUS_IMPORT_RES = "IMPORT_RES"
58 STATUS_IMPORTED = "IMPORTED"
59 STATUS_INQUIRE_MAXLEN = "INQUIRE_MAXLEN"
60 STATUS_INV_RECP = "INV_RECP"
61 STATUS_INV_SGNR = "INV_SGNR"
62 STATUS_KEY_CONSIDERED = "KEY_CONSIDERED"
63 STATUS_KEY_CREATED = "KEY_CREATED"
64 STATUS_KEY_NOT_CREATED = "KEY_NOT_CREATED"
65 STATUS_KEYEXPIRED = "KEYEXPIRED"
66 STATUS_KEYREVOKED = "KEYREVOKED"
67 STATUS_LEAVE = "LEAVE"
68 STATUS_MISSING_PASSPHRASE = "MISSING_PASSPHRASE"
69 STATUS_MOUNTPOINT = "MOUNTPOINT"
70 STATUS_NEED_PASSPHRASE = "NEED_PASSPHRASE"
71 STATUS_NEED_PASSPHRASE_PIN = "NEED_PASSPHRASE_PIN"
72 STATUS_NEED_PASSPHRASE_SYM = "NEED_PASSPHRASE_SYM"
73 STATUS_NEWSIG = "NEWSIG"
74 STATUS_NO_PUBKEY = "NO_PUBKEY"
75 STATUS_NO_RECP = "NO_RECP"
76 STATUS_NO_SECKEY = "NO_SECKEY"
77 STATUS_NO_SGNR = "NO_SGNR"
78 STATUS_NODATA = "NODATA"
79 STATUS_NOTATION_DATA = "NOTATION_DATA"
80 STATUS_NOTATION_FLAGS = "NOTATION_FLAGS"
81 STATUS_NOTATION_NAME = "NOTATION_NAME"
82 STATUS_PINENTRY_LAUNCHED = "PINENTRY_LAUNCHED"
83 STATUS_PKA_TRUST_BAD = "PKA_TRUST_BAD"
84 STATUS_PKA_TRUST_GOOD = "PKA_TRUST_GOOD"
85 STATUS_PLAINTEXT = "PLAINTEXT"
86 STATUS_PLAINTEXT_LENGTH = "PLAINTEXT_LENGTH"
87 STATUS_POLICY_URL = "POLICY_URL"
88 STATUS_PROGRESS = "PROGRESS"
89 STATUS_REVKEYSIG = "REVKEYSIG"
90 STATUS_RSA_OR_IDEA = "RSA_OR_IDEA"
91 STATUS_SC_OP_FAILURE = "SC_OP_FAILURE"
92 STATUS_SC_OP_SUCCESS = "SC_OP_SUCCESS"
93 STATUS_SESSION_KEY = "SESSION_KEY"
94 STATUS_SHM_GET = "SHM_GET"
95 STATUS_SHM_GET_BOOL = "SHM_GET_BOOL"
96 STATUS_SHM_GET_HIDDEN = "SHM_GET_HIDDEN"
97 STATUS_SHM_INFO = "SHM_INFO"
98 STATUS_SIG_CREATED = "SIG_CREATED"
99 STATUS_SIG_ID = "SIG_ID"
100 STATUS_SIG_SUBPACKET = "SIG_SUBPACKET"
101 STATUS_SIGEXPIRED = "SIGEXPIRED"
102 STATUS_SUCCESS = "SUCCESS"
103 STATUS_TOFU_STATS = "TOFU_STATS"
104 STATUS_TOFU_STATS_LONG = "TOFU_STATS_LONG"
105 STATUS_TOFU_USER = "TOFU_USER"
106 STATUS_TRUNCATED = "TRUNCATED"
107 STATUS_TRUST_FULLY = "TRUST_FULLY"
108 STATUS_TRUST_MARGINAL = "TRUST_MARGINAL"
109 STATUS_TRUST_NEVER = "TRUST_NEVER"
110 STATUS_TRUST_ULTIMATE = "TRUST_ULTIMATE"
111 STATUS_TRUST_UNDEFINED = "TRUST_UNDEFINED"
112 STATUS_UNEXPECTED = "UNEXPECTED"
113 STATUS_USERID_HINT = "USERID_HINT"
114 STATUS_VALIDSIG = "VALIDSIG"