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
>>>
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:
What do you think?