Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin System #135

Open
sedrubal opened this issue May 12, 2016 · 1 comment
Open

Plugin System #135

sedrubal opened this issue May 12, 2016 · 1 comment
Labels

Comments

@sedrubal
Copy link
Member

I think we need something like a plugin system to extend the KassenTerminal with custom plugins (e.g. MagnaCharta Plugin)

Maybe it can work like this:

>>> # in config you can add:
>>> PLUGINS_CFG = [          
...   "plugin1",
...   "plugin2",
...   "sys",  # example
...]
>>> # somewhere in code:
>>> PLUGINS = []
>>> for ps in PLUGINS_CFG:
...     PLUGINS.append(__import__(ps))
>>> # to use them:
>>> for p in PLUGINS:
...    # example usage:
...    print(p.__name__)             
...
plugin1
plugin2
sys
>>>

What do you think?

@mgmax
Copy link
Member

mgmax commented May 12, 2016

it would require a lot more more effort than just this, because plugins need to register their provided things somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants