Skip to content

Replace use of PluginManager with Cntlr.plugins#45

Open
aaroncameron-wk wants to merge 1 commit into
xbrlus:mainfrom
aaroncameron-wk:plugin-provider
Open

Replace use of PluginManager with Cntlr.plugins#45
aaroncameron-wk wants to merge 1 commit into
xbrlus:mainfrom
aaroncameron-wk:plugin-provider

Conversation

@aaroncameron-wk
Copy link
Copy Markdown
Contributor

Description:

Refactor plugin invocation to align with the upcoming deprecation of the global PluginManager in Arelle. This update migrates logic to use the PluginProvider instance provided by the Cntlr (accessible via cntlr.plugins).

Questions:

I noticed the Do not change anything below this line comment, but I'm not familiar with the context around that. Perhaps this code is generated/copied from somewhere else?

@campbellpryde
@davidtauriello


def getSxmModule(cntlr):
if _SXM_PLUGIN_NAME not in cntlr.plugins.get_plugins():
cntlr.addToLog(_("'{plugin_name}'' plugin is not loaded. '{plugin_name}' plugin is required. "
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cntlr.addToLog(_("'{plugin_name}'' plugin is not loaded. '{plugin_name}' plugin is required. "
cntlr.addToLog(_("'{plugin_name}' plugin is not loaded. '{plugin_name}' plugin is required. "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants