Skip to content
Snippets Groups Projects
Select Git revision
  • fix-old-covers
  • patch-1
  • develop default protected
  • master
  • build-docker-unprivileged
  • 463-user-libraries
  • avatar-everywhere
  • playlist-component
  • 303-json-ld
  • 334-don-t-display-an-empty-page-browser
  • 316-ultrasonic
  • ButterflyOfFire/funkwhale-patch-1
  • 278-search-browse
  • 0.17
  • 0.16.3
  • 0.16.2
  • 0.16.1
  • 0.16
  • 0.15
  • 0.14.2
  • 0.14.1
  • 0.14
  • 0.13
  • 0.12
  • 0.11
  • 0.10
  • 0.9.1
  • 0.9
  • 0.8
  • 0.7
  • 0.6.1
  • 0.6
  • 0.5.4
33 results

dynamic_preferences_registry.py

Blame
  • Forked from funkwhale / funkwhale
    7896 commits behind the upstream repository.
    dynamic_preferences_registry.py 451 B
    from dynamic_preferences.types import StringPreference, Section
    from dynamic_preferences.registries import global_preferences_registry
    
    acoustid = Section('providers_acoustid')
    
    
    @global_preferences_registry.register
    class APIKey(StringPreference):
        section = acoustid
        name = 'api_key'
        default = ''
        verbose_name = 'Acoustid API key'
        help_text = 'The API key used to query AcoustID. Get one at https://acoustid.org/new-application.'