feat(plugins): Load metadata from entry points / distribution #24

Merged
crimsen merged 2 commits from proposal/metadata2 into develop 2022-03-08 08:13:52 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 2d4c8ebfd9 - Show all commits

View File

@ -109,7 +109,7 @@ class Plugin:
"""
from ..controller import pluginController
return pluginController.get_setting(self.id, name, **kwargs)
return pluginController.get_setting(self.name, name, **kwargs)
def set_setting(self, name: str, value):
"""Save setting in database
@ -120,7 +120,7 @@ class Plugin:
"""
from ..controller import pluginController
return pluginController.set_setting(self.id, name, value)
return pluginController.set_setting(self.name, name, value)
def notify(self, user, text: str, data=None):
"""Create a new notification for an user
@ -136,7 +136,7 @@ class Plugin:
"""
from ..controller import pluginController
return pluginController.notify(self.id, user, text, data)
return pluginController.notify(self.name, user, text, data)
def serialize(self):
"""Serialize a plugin into a dict