config: Update extensions with respect to config changes

This commit is contained in:
Thomas Adamcik 2013-04-15 00:08:23 +02:00
parent ee57eb58a3
commit ad25a60ba5
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ class Extension(ext.Extension):
def get_config_schema(self):
schema = super(Extension, self).get_config_schema()
schema['username'] = config.String()
schema['password'] = config.String(secret=True)
schema['password'] = config.Secret()
schema['bitrate'] = config.Integer(choices=(96, 160, 320))
schema['timeout'] = config.Integer(minimum=0)
schema['cache_dir'] = config.Path()

View File

@ -20,7 +20,7 @@ class Extension(ext.Extension):
schema = super(Extension, self).get_config_schema()
schema['hostname'] = config.Hostname()
schema['port'] = config.Port()
schema['password'] = config.String(optional=True, secret=True)
schema['password'] = config.Secret(optional=True)
schema['max_connections'] = config.Integer(minimum=1)
schema['connection_timeout'] = config.Integer(minimum=1)
return schema

View File

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