Yann Weber
497d31c6b2
Deleted wrong import
8 anni fa
Yann Weber
6e978a4230
Forgotten exceptions file
8 anni fa
Yann Weber
748850cf33
Adding a core hook that generate debug log listing registered hooks
8 anni fa
Yann Weber
2436d397f8
Update in plugins.py
8 anni fa
Yann Weber
36bded3051
Add the possibility to add custom methods ton LeAPI dynamic objects using plugin
8 anni fa
Yann Weber
9a82936fbf
Datasources plugins enhancement and loading bugfixes
- now we have a LodelHook to trigger migration handlers loading
- datasources initialization in dyncode is now trigger by a hook (lodel2_plugin_loaded)
- datasources loading by dyncode is better
8 anni fa
Yann Weber
785a208d07
LodelHook logging enhancement
8 anni fa
Yann Weber
83afc6b6dd
Deleted datasources plugins and add a settings for datasources declaration
- now datasources are declared with two conf keys : read_only and identifier
- the old datasources plugin hook is now declared in lodel/plugin/core_hooks.py. This file is imported after lodel/plugin/hooks.py in the loader.py
8 anni fa
prieto
413d8e7570
Remove useless changes in PluginErro
8 anni fa
prieto
e01c444436
Remove print(...)
8 anni fa
prieto
73d911f091
Adding a new class methos in plugins.pyto clear the class variables
Adding tests for the Plugin class
8 anni fa
Yann Weber
75c2a81225
Now plugins can define dependencies.
8 anni fa
Yann Weber
3adad7bb02
Now plugins can check EM and invalidate activation
They have to implement a _activate() method in their __init__.py file
8 anni fa
Yann Weber
23e29b4336
Add _activate check when plugins are loaded
8 anni fa
Yann Weber
8204f97fc5
Documentin Plugin + update pickle file example
8 anni fa
Yann Weber
61f19772fb
New way to handles plugin
- renamed Plugins class to Plugin
- an instance represent a loaded plugin
- classmethod allows to preload & load plugins
8 anni fa
Yann Weber
84717328e3
Enhancement in datasources plugins handling
- now datasources are handled in LeObject child classes
- plugins module now have a method to retrieve a plugin module
8 anni fa
Yann Weber
5c8f46c51e
Updated webui plugin to enable standalone mode
To start in standalone uwsgi set lodel2.webui.standalone=True in conf file and start loader.py
8 anni fa
Yann Weber
a312cbc4d9
First version of lodel2 instance creation script
8 anni fa
Yann Weber
8659e91f43
Fixing settings & logger
8 anni fa
Yann Weber
e0717c9317
More comments + a script to list default settings validators
8 anni fa
Yann Weber
c5971d9590
Updated comments (and deleting space between ## and @brief )
8 anni fa
Yann Weber
c0c5d23adb
Commit with comments, code clean etc.
8 anni fa