ext: Get config schema from super

This commit is contained in:
Thomas Adamcik 2013-04-13 21:12:48 +02:00
parent a2b29151a5
commit 5fd4c18792
7 changed files with 7 additions and 7 deletions

View File

@ -17,7 +17,7 @@ class Extension(ext.Extension):
return config.read(conf_file)
def get_config_schema(self):
schema = config.ExtensionConfigSchema()
schema = super(Extension, self).get_config_schema()
schema['media_dir'] = config.Path()
schema['playlists_dir'] = config.Path()
schema['tag_cache_file'] = config.Path()

View File

@ -17,7 +17,7 @@ class Extension(ext.Extension):
return config.read(conf_file)
def get_config_schema(self):
schema = config.ExtensionConfigSchema()
schema = super(Extension, self).get_config_schema()
schema['username'] = config.String()
schema['password'] = config.String(secret=True)
schema['bitrate'] = config.Integer(choices=(96, 160, 320))

View File

@ -17,7 +17,7 @@ class Extension(ext.Extension):
return config.read(conf_file)
def get_config_schema(self):
schema = config.ExtensionConfigSchema()
schema = super(Extension, self).get_config_schema()
schema['protocols'] = config.List()
return schema

View File

@ -17,7 +17,7 @@ class Extension(ext.Extension):
return config.read(conf_file)
def get_config_schema(self):
schema = config.ExtensionConfigSchema()
schema = super(Extension, self).get_config_schema()
schema['hostname'] = config.Hostname()
schema['port'] = config.Port()
schema['static_dir'] = config.Path(optional=True)

View File

@ -17,7 +17,7 @@ class Extension(ext.Extension):
return config.read(conf_file)
def get_config_schema(self):
schema = config.ExtensionConfigSchema()
schema = super(Extension, self).get_config_schema()
schema['hostname'] = config.Hostname()
schema['port'] = config.Port()
schema['password'] = config.String(optional=True, secret=True)

View File

@ -17,7 +17,7 @@ class Extension(ext.Extension):
return config.read(conf_file)
def get_config_schema(self):
schema = config.ExtensionConfigSchema()
schema = super(Extension, self).get_config_schema()
schema['desktop_file'] = config.Path()
return schema

View File

@ -17,7 +17,7 @@ class Extension(ext.Extension):
return config.read(conf_file)
def get_config_schema(self):
schema = config.ExtensionConfigSchema()
schema = super(Extension, self).get_config_schema()
schema['username'] = config.String()
schema['password'] = config.String(secret=True)
return schema