Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jovuit
funkwhale
Commits
6f5716a1
Verified
Commit
6f5716a1
authored
Sep 23, 2019
by
Eliot Berriot
Browse files
Added preference to control plugin usage
parent
812709ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
api/funkwhale_api/plugins/dynamic_preferences_registry.py
0 → 100644
View file @
6f5716a1
from
dynamic_preferences
import
types
from
dynamic_preferences.registries
import
global_preferences_registry
plugins
=
types
.
Section
(
"plugins"
)
@
global_preferences_registry
.
register
class
PluginsEnabled
(
types
.
BooleanPreference
):
section
=
plugins
show_in_api
=
True
name
=
"enabled"
default
=
True
verbose_name
=
"Enable Funkwhale plugins"
help_text
=
"If disabled, all installed and enabled plugins will be ignored."
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment