mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-13 01:02:16 +03:00
PEP8 standarts
This commit is contained in:
parent
e917e5023f
commit
b8960de1dd
1 changed files with 5 additions and 11 deletions
|
@ -127,8 +127,6 @@ class AhenkDeamon(BaseDaemon):
|
||||||
print(str(e))
|
print(str(e))
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def reload_plugins(self):
|
def reload_plugins(self):
|
||||||
Scope.getInstance().getPluginManager().reloadPlugins()
|
Scope.getInstance().getPluginManager().reloadPlugins()
|
||||||
|
|
||||||
|
@ -137,20 +135,17 @@ class AhenkDeamon(BaseDaemon):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def reload_messaging(self):
|
def reload_messaging(self):
|
||||||
#Not implemented yet
|
# Not implemented yet
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def reload_logger(self):
|
def reload_logger(self):
|
||||||
#Not implemented yet
|
# Not implemented yet
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def update_plugin_manager(self):
|
def update_plugin_manager(self):
|
||||||
#TODO destroy plugin manager here
|
# TODO destroy plugin manager here
|
||||||
self.init_plugin_manager()
|
self.init_plugin_manager()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
print('Ahenk running...')
|
print('Ahenk running...')
|
||||||
|
|
||||||
|
@ -195,7 +190,6 @@ class AhenkDeamon(BaseDaemon):
|
||||||
|
|
||||||
self.init_message_response_queue()
|
self.init_message_response_queue()
|
||||||
|
|
||||||
|
|
||||||
# if registration.is_ldap_registered() is False:
|
# if registration.is_ldap_registered() is False:
|
||||||
# logger.debug('[AhenkDeamon] Attempting to registering ldap')
|
# logger.debug('[AhenkDeamon] Attempting to registering ldap')
|
||||||
# registration.ldap_registration_request() #TODO work on message
|
# registration.ldap_registration_request() #TODO work on message
|
||||||
|
@ -244,10 +238,10 @@ class AhenkDeamon(BaseDaemon):
|
||||||
scope.getMessager().send_direct_message(message)
|
scope.getMessager().send_direct_message(message)
|
||||||
logger.debug('[AhenkDeamon] logout event is handled for user:' + params[1])
|
logger.debug('[AhenkDeamon] logout event is handled for user:' + params[1])
|
||||||
elif 'exit' == str(params[0]):
|
elif 'exit' == str(params[0]):
|
||||||
print("exit:"+str(params[0]))
|
print("exit:" + str(params[0]))
|
||||||
scope = Scope.getInstance()
|
scope = Scope.getInstance()
|
||||||
scope.getMessager().disconnect()
|
scope.getMessager().disconnect()
|
||||||
#TODO kill thread
|
# TODO kill thread
|
||||||
print('stopping ahenk')
|
print('stopping ahenk')
|
||||||
else:
|
else:
|
||||||
logger.error('[AhenkDeamon] Unknown command error. Command:' + params[0])
|
logger.error('[AhenkDeamon] Unknown command error. Command:' + params[0])
|
||||||
|
|
Loading…
Reference in a new issue