variables and functions name is changed to according to PEP8

This commit is contained in:
Volkan Şahin 2016-09-21 11:47:47 +03:00
parent a3374ebe65
commit 4715574fe9

View file

@ -6,106 +6,106 @@
class Scope(object): class Scope(object):
"""docstring for Scope""" """docstring for Scope"""
scopeInstance = None scope_instance = None
def __init__(self): def __init__(self):
super(Scope, self).__init__() super(Scope, self).__init__()
self.customMap = dict() self.custom_map = dict()
self.configurationManager = None self.configuration_manager = None
self.messageManager = None self.message_manager = None
self.logger = None self.logger = None
self.pluginManager = None self.plugin_manager = None
self.taskManager = None self.task_manager = None
self.responseQueue = None self.response_queue = None
self.registration = None self.registration = None
self.eventManager = None self.event_manager = None
self.executionManager = None self.execution_manager = None
self.dbService = None self.db_service = None
self.messenger = None self.messenger = None
self.scheduler = None self.scheduler = None
@staticmethod @staticmethod
def getInstance(): def get_instance():
return scopeInstance return scope_instance
@staticmethod @staticmethod
def setInstance(scopeObj): def set_instance(scope_obj):
global scopeInstance global scope_instance
scopeInstance = scopeObj scope_instance = scope_obj
def getCustomMap(self): def get_custom_map(self):
return self.customMap return self.custom_map
def putCustomMap(self, name, value): def put_custom_map(self, name, value):
self.custom[str(name)] = value self.custom_map[str(name)] = value
def getCustomParam(self, name): def get_custom_param(self, name):
return self.customMap[str(name)] return self.custom_map[str(name)]
def getConfigurationManager(self): def get_configuration_manager(self):
return self.configurationManager return self.configuration_manager
def setConfigurationManager(self, configurationManager): def set_configuration_manager(self, configuration_manager):
self.configurationManager = configurationManager self.configuration_manager = configuration_manager
def getLogger(self): def get_logger(self):
return self.logger return self.logger
def setLogger(self, logger): def set_logger(self, logger):
self.logger = logger self.logger = logger
def getMessageManager(self): def get_message_manager(self):
return self.messageManager return self.message_manager
def setMessageManager(self, messageManager): def set_message_manager(self, message_manager):
self.messageManager = messageManager self.message_manager = message_manager
def getPluginManager(self): def get_plugin_manager(self):
return self.pluginManager return self.plugin_manager
def setPluginManager(self, pluginManager): def set_plugin_manager(self, plugin_manager):
self.pluginManager = pluginManager self.plugin_manager = plugin_manager
def getTaskManager(self): def get_task_manager(self):
return self.taskManager return self.task_manager
def setTaskManager(self, taskManager): def set_task_manager(self, task_manager):
self.taskManager = taskManager self.task_manager = task_manager
def getResponseQueue(self): def get_response_queue(self):
return self.responseQueue return self.response_queue
def setResponseQueue(self, responseQueue): def set_response_queue(self, response_queue):
self.responseQueue = responseQueue self.response_queue = response_queue
def getRegistration(self): def get_registration(self):
return self.registration return self.registration
def setRegistration(self, registration): def set_registration(self, registration):
self.registration = registration self.registration = registration
def getEventManager(self): def get_event_manager(self):
return self.eventManager return self.event_manager
def setEventManager(self, eventManager): def set_event_manager(self, event_manager):
self.eventManager = eventManager self.event_manager = event_manager
def getExecutionManager(self): def get_execution_manager(self):
return self.executionManager return self.execution_manager
def setExecutionManager(self, executionManager): def set_execution_manager(self, execution_manager):
self.executionManager = executionManager self.execution_manager = execution_manager
def getDbService(self): def get_db_service(self):
return self.dbService return self.db_service
def setDbService(self, dbService): def set_sb_service(self, db_service):
self.dbService = dbService self.db_service = db_service
def getMessenger(self): def get_messenger(self):
return self.messenger return self.messenger
def setMessenger(self, messenger): def set_messenger(self, messenger):
self.messenger = messenger self.messenger = messenger
def set_scheduler(self, scheduler): def set_scheduler(self, scheduler):