1
0
複製 0
镜像来自 https://github.com/yweber/lodel2.git 已同步 2025-12-18 07:46:54 +01:00
lodel2_mirror/plugins/__init__.py

20 line
982 B
Python

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## @package plugins Lodel2 plugin system
#
# The plugins activation system is based on <code>__init__.py</code> file.
# The <code>__all__</code> variable in @ref plugins/__init__.py is generated
# from configuration by Lodel.plugins._all_plugins() method. Then the plugins should
# auto-import all its source files using it's own package <code>__init__.py</code> file
#
# For the moment plugins capabilities are :
# - Hooks registration using Lodel.LodelHook decoration class
# - User authentification methods registration using Lodel.user.authentication_method decorator
# - User identification methods using Lodel.user.identification_method decorator
#
# You can find examples plugins in :
# - plugins.dummy (Hooks registration)
# - plugins.dummy_auth (Auth and identification methods registration)
# - plugins.dummy_acl (Complex plugin with settings enhancement example)
#
import Lodel.plugins
## @brief Contain all activated plugins name
__all__ = Lodel.plugins._all_plugins()