Initializes config objects for the path of extensions.
Args:
ext_type (string): A specific extension type to load/reload a config object from. [global, user, or core]. If not provided, defaults to all.
Raises:
ValueError: If the extension type passed is not either [core, global, or user]
References commotion_client.utils.extension_manager.ExtensionManager.extensions, commotion_client.utils.extension_manager.ExtensionManager.libraries, commotion_client.GUI.menu_bar.MenuBar.translate, commotion_client.extensions.config_editor.main.ViewPort.translate, commotion_client.GUI.main_window.MainWindow.translate, commotion_client.GUI.toolbar_builder.ToolBar.translate, commotion_client.GUI.toolbar.ToolBar.translate, commotion_client.GUI.extension_toolbar.ExtensionToolBar.translate, commotion_client.utils.extension_manager.ExtensionManager.translate, commotion_client.GUI.extension_toolbar.MenuItem.translate, and commotion_client.commotion_client.CommotionClientApplication.translate.
Referenced by commotion_client.utils.extension_manager.ExtensionManager.init_extension_libraries(), and commotion_client.utils.extension_manager.ExtensionManager.load_core().
194 """ Initializes config objects for the path of extensions.
197 ext_type (string): A specific extension type to load/reload a config object from. [global, user, or core]. If not provided, defaults to all.
200 ValueError: If the extension type passed is not either [core, global, or user]
202 self.log.debug(self.
translate(
"logs",
"Initializing {0} extension configs..".format(ext_type)))
203 extension_types = [
'user',
'global',
'core']
205 if str(ext_type)
in extension_types:
206 extension_types = [ext_type]
208 raise ValueError(self.
translate(
"logs",
"{0} is not an acceptable extension type.".format(ext_type)))
209 for type_
in extension_types:
211 self.log.debug(self.
translate(
"logs",
"Creating {0} config manager".format(type_)))
214 self.log.debug(self.
translate(
"logs",
"There were no extensions found for the {0} library.".format(type_)))
217 self.log.debug(self.
translate(
"logs",
"There were no library path found for the {0} library.".format(type_)))
219 self.log.debug(self.
translate(
"logs",
"Configs for {0} extension library loaded..".format(type_)))
translate
Definition: extension_manager.py:60
def init_extension_config
Definition: extension_manager.py:192
libraries
Definition: extension_manager.py:62
Definition: extension_manager.py:616
extensions
Definition: extension_manager.py:61