Exemplo n.º 1
0
 def pre_save_post_validation(cls, sender, document, **kwargs):
     document.api_token = Utility.encrypt_message(document.api_token)
Exemplo n.º 2
0
 def pre_save_post_validation(cls, sender, document, **kwargs):
     document.smtp_url = Utility.encrypt_message(document.smtp_url)
     document.smtp_password = Utility.encrypt_message(document.smtp_password)
     if not Utility.check_empty_string(document.smtp_userid):
         document.smtp_userid = Utility.encrypt_message(document.smtp_userid)
     document.from_email = Utility.encrypt_message(document.from_email)