diff --git a/lib/config/parser.py b/lib/config/parser.py index 5fc958d..0fd1d45 100644 --- a/lib/config/parser.py +++ b/lib/config/parser.py @@ -174,7 +174,7 @@ class ConfigParser: except KeyError, k: self.log.w("Key '" + str(k) + "' not in classItem " + str(clazzItem)) except Exception, e: - self.log.w("Error while replace: " + str(e)) + self.log.w("Error while replace: " + clazz + str(e)) finally: if path in sys.path: del sys.path[sys.path.index(path)] diff --git a/lib/tasks/email.py b/lib/tasks/email.py index 8593c84..01db30c 100644 --- a/lib/tasks/email.py +++ b/lib/tasks/email.py @@ -18,5 +18,5 @@ class EmailTask(Task): pass -def creator(taskDict): +def create(taskDict): return EmailTask(**taskDict) \ No newline at end of file diff --git a/lib/tasks/sms.py b/lib/tasks/sms.py index d352204..49dd80e 100644 --- a/lib/tasks/sms.py +++ b/lib/tasks/sms.py @@ -18,5 +18,5 @@ class SmsTask(Task): pass -def creator(taskDict): +def create(taskDict): return SmsTask(**taskDict) \ No newline at end of file diff --git a/lib/tasks/xmpp.py b/lib/tasks/xmpp.py index 4f3fc67..f6f2477 100644 --- a/lib/tasks/xmpp.py +++ b/lib/tasks/xmpp.py @@ -19,5 +19,5 @@ class XmppTask(Task): -def creator(taskDict): +def create(taskDict): return XmppTask(taskDict) \ No newline at end of file