big change n parsing logic passing
This commit is contained in:
parent
5a04595843
commit
127dacd778
17 changed files with 570 additions and 127 deletions
|
|
@ -1,3 +1,24 @@
|
|||
"""
|
||||
The email task.
|
||||
"""
|
||||
"""
|
||||
|
||||
from lib.tasks.task import Task
|
||||
|
||||
class EmailTask(Task):
|
||||
def __init__(self, **kwargs):
|
||||
if not "type" in kwargs:
|
||||
raise Exception("'type' not in typeDict " + str(kwargs))
|
||||
if not "args" in kwargs:
|
||||
raise Exception("typeDict " + str(kwargs) + " has nor arguments!")
|
||||
self.set_task_type(kwargs["type"])
|
||||
self.recipient = kwargs["args"]["rcpt"]
|
||||
|
||||
|
||||
|
||||
def execute_task(self, msg):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
def creator(**taskDict):
|
||||
return EmailTask(**taskDict)
|
||||
Loading…
Add table
Add a link
Reference in a new issue