diff sat/memory/encryption.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 4b8271399f67
children 003b8b4b56a7
line wrap: on
line diff
--- a/sat/memory/encryption.py	Fri Jan 04 18:44:43 2019 +0100
+++ b/sat/memory/encryption.py	Fri Jan 04 18:46:02 2019 +0100
@@ -380,7 +380,7 @@
         the plugin
         @param mess_data(dict): message data as used in post treat workflow
         """
-        mess_data['encrypted'] = True
+        mess_data[C.MESS_KEY_ENCRYPTED] = True
         return mess_data
 
     def markAsTrusted(self, mess_data):
@@ -390,7 +390,7 @@
         the plugin
         @param mess_data(dict): message data as used in post treat workflow
         """
-        mess_data['trusted'] = True
+        mess_data[C.MESS_KEY_TRUSTED] = True
         return mess_data
 
     def markAsUntrusted(self, mess_data):