model classes fixed about json issues

This commit is contained in:
Volkan Şahin 2016-04-11 19:26:49 +03:00
parent b51646f053
commit e917e5023f
2 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,7 @@ class Plugin(object):
"""docstring for Plugin"""
def __init__(self, message):
self.plugin = message
self.plugin = message['plugin']
@property
def id(self):

View file

@ -30,7 +30,7 @@ class Task(object):
@property
def command_cls_id(self):
return self.task['commandClsId']
return json.loads(str(self.task))['commandClsId']
@property
def parameter_map(self):
@ -42,7 +42,7 @@ class Task(object):
@property
def plugin(self):
return Plugin(self.task['plugin'])
return Plugin(json.loads(str(self.task)))
@property
def cron_str(self):