Skip to content
Snippets Groups Projects
Commit ac1a3345 authored by Jakub Judiny's avatar Jakub Judiny
Browse files

Fix renamed parameters

(Redmine issue: #7652)
parent 5243fafd
No related branches found
No related tags found
No related merge requests found
...@@ -65,25 +65,25 @@ class EventStoragePlugin(pyzenkit.baseapp.ZenAppPlugin): ...@@ -65,25 +65,25 @@ class EventStoragePlugin(pyzenkit.baseapp.ZenAppPlugin):
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
def configure(self, application): def configure(self, app):
""" """
Configure application. This method will be called from :py:func:`pyzenkit.baseapp.BaseApp._configure_plugins` Configure application. This method will be called from :py:func:`pyzenkit.baseapp.BaseApp._configure_plugins`
and it further updates current application configurations. and it further updates current application configurations.
This method is part of the **setup** stage of application`s life cycle. This method is part of the **setup** stage of application`s life cycle.
:param application: Reference to the parent application. :param app: Reference to the parent application.
""" """
def setup(self, application): def setup(self, app):
""" """
Configure application. This method will be called from :py:func:`pyzenkit.baseapp.BaseApp._stage_setup_plugins` Configure application. This method will be called from :py:func:`pyzenkit.baseapp.BaseApp._stage_setup_plugins`
and it further updates current application configurations. and it further updates current application configurations.
This method is part of the **setup** stage of application`s life cycle. This method is part of the **setup** stage of application`s life cycle.
:param application: Reference to the parent application. :param app: Reference to the parent application.
""" """
esm = mentat.services.eventstorage.EventStorageServiceManager(application.config) esm = mentat.services.eventstorage.EventStorageServiceManager(app.config)
application.eventservice = esm.service() app.eventservice = esm.service()
application.logger.debug("[STATUS] Set up event storage service.") app.logger.debug("[STATUS] Set up event storage service.")
...@@ -64,26 +64,26 @@ class SQLStoragePlugin(pyzenkit.baseapp.ZenAppPlugin): ...@@ -64,26 +64,26 @@ class SQLStoragePlugin(pyzenkit.baseapp.ZenAppPlugin):
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
def configure(self, application): def configure(self, app):
""" """
Configure application. This method will be called from :py:func:`pyzenkit.baseapp.BaseApp._configure_plugins` Configure application. This method will be called from :py:func:`pyzenkit.baseapp.BaseApp._configure_plugins`
and it further updates current application configurations. and it further updates current application configurations.
This method is part of the **setup** stage of application`s life cycle. This method is part of the **setup** stage of application`s life cycle.
:param application: Reference to the parent application. :param app: Reference to the parent application.
""" """
def setup(self, application): def setup(self, app):
""" """
Configure application. This method will be called from :py:func:`pyzenkit.baseapp.BaseApp._stage_setup_plugins` Configure application. This method will be called from :py:func:`pyzenkit.baseapp.BaseApp._stage_setup_plugins`
and it further updates current application configurations. and it further updates current application configurations.
This method is part of the **setup** stage of application`s life cycle. This method is part of the **setup** stage of application`s life cycle.
:param application: Reference to the parent application. :param app: Reference to the parent application.
""" """
mentat.services.sqlstorage.init(application.config) mentat.services.sqlstorage.init(app.config)
application.logger.debug("[STATUS] Set up connection to SQL storage.") app.logger.debug("[STATUS] Set up connection to SQL storage.")
application.sqlservice = mentat.services.sqlstorage.service() app.sqlservice = mentat.services.sqlstorage.service()
application.logger.debug("[STATUS] Set up SQL storage service.") app.logger.debug("[STATUS] Set up SQL storage service.")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment