context mail feature added to profile

This commit is contained in:
volkansahin 2017-07-20 10:38:13 +03:00
parent f2c365fcb1
commit c4500c8868

View file

@ -188,6 +188,12 @@ class Plugin(threading.Thread):
profile_data = item_obj.get_profile_data() profile_data = item_obj.get_profile_data()
self.context.put('username', item_obj.get_username()) self.context.put('username', item_obj.get_username())
json_profile_data=json.loads(profile_data)
self.context.set_mail_send(json_profile_data['mailSend'] if 'mailSend' in json_profile_data else False)
self.context.set_mail_subject(json_profile_data['mailSubject'] if 'mailSubject' in json_profile_data else '')
self.context.set_mail_content(json_profile_data['mailContent'] if 'mailContent' in json_profile_data else '')
execution_id = self.get_execution_id(item_obj.get_id()) execution_id = self.get_execution_id(item_obj.get_id())
policy_ver = self.get_policy_version(item_obj.get_id()) policy_ver = self.get_policy_version(item_obj.get_id())