improved logging, fixed creator to create

This commit is contained in:
Rafael.Timmerberg 2013-06-19 01:39:25 +02:00
commit 07a2ffae51
4 changed files with 4 additions and 4 deletions

View file

@ -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)]

View file

@ -18,5 +18,5 @@ class EmailTask(Task):
pass
def creator(taskDict):
def create(taskDict):
return EmailTask(**taskDict)

View file

@ -18,5 +18,5 @@ class SmsTask(Task):
pass
def creator(taskDict):
def create(taskDict):
return SmsTask(**taskDict)

View file

@ -19,5 +19,5 @@ class XmppTask(Task):
def creator(taskDict):
def create(taskDict):
return XmppTask(taskDict)