mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-25 11:12:15 +03:00
bugfix
This commit is contained in:
parent
bcb5087a25
commit
b3c08719f9
1 changed files with 4 additions and 1 deletions
|
@ -114,7 +114,10 @@ class Plugin(threading.Thread):
|
||||||
self.context.put('protocol', json.loads(item_obj.get_file_server())['protocol'])
|
self.context.put('protocol', json.loads(item_obj.get_file_server())['protocol'])
|
||||||
self.context.put('parameterMap', json.loads(item_obj.get_file_server())['parameterMap'])
|
self.context.put('parameterMap', json.loads(item_obj.get_file_server())['parameterMap'])
|
||||||
|
|
||||||
|
if type(item_obj.get_parameter_map())==str:
|
||||||
task_data = json.loads(item_obj.get_parameter_map())
|
task_data = json.loads(item_obj.get_parameter_map())
|
||||||
|
elif type(item_obj.get_parameter_map())==dict:
|
||||||
|
task_data = item_obj.get_parameter_map()
|
||||||
|
|
||||||
# check if mail send is actve or not and set mail params to context object.. plugins get mail params via context object
|
# check if mail send is actve or not and set mail params to context object.. plugins get mail params via context object
|
||||||
self.context.set_mail_send(task_data['mailSend'] if 'mailSend' in task_data else False)
|
self.context.set_mail_send(task_data['mailSend'] if 'mailSend' in task_data else False)
|
||||||
|
|
Loading…
Reference in a new issue