missing plugin message created

This commit is contained in:
Volkan Şahin 2016-05-06 16:42:21 +03:00
parent 95abee215d
commit daa078c90d

View file

@ -18,6 +18,16 @@ class Messaging(object):
self.db_service = scope.getDbService()
self.event_manger = scope.getEventManager()
def missing_plugin_message(self, plugin):
data = {}
data['type'] = 'MISSING_PLUGIN'
data['pluginName'] = plugin.get_name()
data['pluginVersion'] = plugin.get_version()
json_data = json.dumps(data)
self.logger.debug('[Messaging]Missing plugin message was created')
return str(json_data)
"""
def response_msg(self, response):
print("response message")
@ -64,8 +74,6 @@ class Messaging(object):
self.logger.debug('[Messaging] Policy status message was created')
return str(json_data)
def login_msg(self, username):
data = {}
data['type'] = 'LOGIN'