From d07aa977b503551ccf166f0d88933df5f50d1676 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sun, 1 Nov 2020 18:43:44 +0100 Subject: [PATCH] [Doc] Some more documentation on Plugin --- flaschengeist/plugins/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flaschengeist/plugins/__init__.py b/flaschengeist/plugins/__init__.py index f329472..d8b779a 100644 --- a/flaschengeist/plugins/__init__.py +++ b/flaschengeist/plugins/__init__.py @@ -4,13 +4,13 @@ from werkzeug.exceptions import MethodNotAllowed from flaschengeist.hook import HookCall send_message_hook = HookCall("send_message") -"""Hook for sending messages, register to send the message +"""Hook decorator for sending messages, register to send the message Args: message: Message object to send """ update_user_hook = HookCall("update_user") -"""When ever an user update is done, this is called before. +"""Hook decorator, when ever an user update is done, this is called before. Args: user: User object """ @@ -18,6 +18,7 @@ Args: class Plugin: """Base class for all Plugins""" + def __init__(self, config=None, blueprint=None, permissions=[]): """Constructor called by create_app Args: