PEP8 standarts

This commit is contained in:
Volkan Şahin 2016-04-11 19:27:26 +03:00
parent e917e5023f
commit b8960de1dd

View file

@ -127,8 +127,6 @@ class AhenkDeamon(BaseDaemon):
print(str(e))
raise
def reload_plugins(self):
Scope.getInstance().getPluginManager().reloadPlugins()
@ -137,20 +135,17 @@ class AhenkDeamon(BaseDaemon):
pass
def reload_messaging(self):
#Not implemented yet
# Not implemented yet
pass
def reload_logger(self):
#Not implemented yet
# Not implemented yet
pass
def update_plugin_manager(self):
#TODO destroy plugin manager here
# TODO destroy plugin manager here
self.init_plugin_manager()
def run(self):
print('Ahenk running...')
@ -195,7 +190,6 @@ class AhenkDeamon(BaseDaemon):
self.init_message_response_queue()
# if registration.is_ldap_registered() is False:
# logger.debug('[AhenkDeamon] Attempting to registering ldap')
# registration.ldap_registration_request() #TODO work on message
@ -244,10 +238,10 @@ class AhenkDeamon(BaseDaemon):
scope.getMessager().send_direct_message(message)
logger.debug('[AhenkDeamon] logout event is handled for user:' + params[1])
elif 'exit' == str(params[0]):
print("exit:"+str(params[0]))
print("exit:" + str(params[0]))
scope = Scope.getInstance()
scope.getMessager().disconnect()
#TODO kill thread
# TODO kill thread
print('stopping ahenk')
else:
logger.error('[AhenkDeamon] Unknown command error. Command:' + params[0])