Added config schema

This commit is contained in:
Ronald Zielaznicki 2015-07-17 23:06:31 -04:00
parent 87bf261345
commit 1892e472a0
2 changed files with 4 additions and 1 deletions

View File

@ -1 +1,3 @@
[core]
enabled = true
max_tracklist_length = 10000

View File

@ -18,7 +18,8 @@ class Extension(ext.Extension):
def get_config_schema(self):
schema = super(Extension, self).get_config_schema()
del schema['enabled'] # core cannot be disabled
schema['max_tracklist_length'] = config.Integer(
minimum=1, maximum=10000)
return schema
def setup(self, registry):