From 3e1342b1d9241d0c907caa7a6c5b31e0f4ea345b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volkan=20=C5=9Eahin?= Date: Tue, 12 Apr 2016 17:31:38 +0300 Subject: [PATCH] creating response message fixed --- opt/ahenk/base/messaging/Messaging.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/opt/ahenk/base/messaging/Messaging.py b/opt/ahenk/base/messaging/Messaging.py index d897a50..f5cb24c 100644 --- a/opt/ahenk/base/messaging/Messaging.py +++ b/opt/ahenk/base/messaging/Messaging.py @@ -18,6 +18,7 @@ class Messaging(object): self.db_service = scope.getDbService() self.event_manger = scope.getEventManager() + """ def response_msg(self, response): print("response message") data = {} @@ -32,6 +33,7 @@ class Messaging(object): json_data = json.dumps(data) self.logger.debug('[Messaging] Response message was created') return str(json_data) + """ def task_status_msg(self, response): data = {} @@ -50,8 +52,8 @@ class Messaging(object): def policy_status_msg(self, response): data = {} data['type'] = response.get_type() - data['policyVersion'] = response.get_id() - data['commandExecutionId'] = response.get_id() + data['policyVersion'] = response.get_policy_version() + data['commandExecutionId'] = response.get_execution_id() data['responseCode'] = response.get_code() data['responseMessage'] = response.get_message() data['responseData'] = response.get_data() @@ -63,6 +65,7 @@ class Messaging(object): return str(json_data) + def login_msg(self, username): data = {} data['type'] = 'LOGIN'