mirror of
https://github.com/yweber/lodel2.git
synced 2025-12-03 17:26:54 +01:00
New way to handles plugin
- renamed Plugins class to Plugin - an instance represent a loaded plugin - classmethod allows to preload & load plugins
This commit is contained in:
parent
3a87551f2e
commit
61f19772fb
15 changed files with 322 additions and 188 deletions
|
|
@ -1,5 +1,5 @@
|
|||
[lodel2.datasources.default]
|
||||
identifier = dummy.example
|
||||
identifier = dummy_datasource.example
|
||||
|
||||
[lodel2.datasource.dummy_datasource.example]
|
||||
dummy =
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ from lodel.settings import Settings
|
|||
|
||||
|
||||
#Load plugins
|
||||
from lodel.plugin import Plugins
|
||||
Plugins.bootstrap()
|
||||
from lodel.plugin import Plugin
|
||||
Plugin.load_all()
|
||||
|
||||
from lodel.plugin import LodelHook
|
||||
LodelHook.call_hook('lodel2_bootstraped', '__main__', None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue