diff sat/core/constants.py @ 2752:1fa615faec8b

core (constants): added a constant for "encrypted"
author Goffi <goffi@goffi.org>
date Fri, 04 Jan 2019 18:46:02 +0100
parents a8ec00731ce7
children 3480d4fdf83a
line wrap: on
line diff
--- a/sat/core/constants.py	Fri Jan 04 18:44:43 2019 +0100
+++ b/sat/core/constants.py	Fri Jan 04 18:46:02 2019 +0100
@@ -121,9 +121,14 @@
     )
     MESS_TYPE_ALL = MESS_TYPE_STANDARD + (MESS_TYPE_INFO, MESS_TYPE_AUTO)
 
-    MESS_EXTRA_INFO = "info_type"
+    MESS_EXTRA_INFO = u"info_type"
+    EXTRA_INFO_DECR_ERR = u"DECRYPTION_ERROR"
 
-    MESS_KEY_ENCRYPTION = "ENCRYPTION"
+    # encryption is a key for plugins
+    MESS_KEY_ENCRYPTION = u"ENCRYPTION"
+    # encrypted is a key for frontends
+    MESS_KEY_ENCRYPTED = u"encrypted"
+    MESS_KEY_TRUSTED = u"trusted"
 
     ## Chat ##
     CHAT_ONE2ONE = "one2one"