Exemple #1
0
 def get_config_schema(self):
     schema = config.ConfigSchema(self.ext_name)
     schema['enabled'] = config.Boolean()
     schema['pusherport'] = config.String()
     schema['country'] = config.String()
     schema['locale'] = config.String()
     return schema
Exemple #2
0
 def get_config_schema(self):
     schema = config.ConfigSchema(self.ext_name)
     schema['enabled'] = config.Boolean()
     schema['country'] = config.String()
     schema['locale'] = config.String()
     schema['authorization_url'] = config.String()
     return schema
Exemple #3
0
    def get_config_schema(self):
        """The extension's config validation schema

        :returns: :class:`~mopidy.config.schema.ExtensionConfigSchema`
        """
        schema = config_lib.ConfigSchema(self.ext_name)
        schema['enabled'] = config_lib.Boolean()
        return schema
Exemple #4
0
 def get_config_schema(self):
     schema = config.ConfigSchema(self.ext_name)
     schema["enabled"] = config.Boolean()
     schema["country"] = config.String()
     schema["locale"] = config.String()
     schema["spotify_authorization_url"] = config.String()
     schema["lastfm_authorization_url"] = config.String()
     schema["genius_authorization_url"] = config.String()
     schema["data_dir"] = config.String()  # Deprecated
     return schema
Exemple #5
0
 def get_config_schema(self):
     schema = config.ConfigSchema(self.ext_name)
     schema['enabled'] = config.Boolean()
     schema['country'] = config.String()
     schema['locale'] = config.String()
     schema['spotify_authorization_url'] = config.String()
     schema['lastfm_authorization_url'] = config.String()
     schema['genius_authorization_url'] = config.String()
     schema['data_dir'] = config.String()
     return schema
Exemple #6
0
 def get_config_schema(self):
     schema = config.ConfigSchema(self.ext_name)
     schema['enabled'] = config.Boolean()
     schema['country'] = config.String()
     schema['locale'] = config.String()
     schema['spotify_authorization_url'] = config.String()
     schema['lastfm_authorization_url'] = config.String()
     schema['snapcast_enabled'] = config.Boolean()
     schema['snapcast_host'] = config.String()
     schema['snapcast_port'] = config.Integer()
     return schema
Exemple #7
0
 def get_config_schema(self):
     schema = config.ConfigSchema(self.ext_name)
     schema["enabled"] = config.Boolean()
     schema["country"] = config.String()
     schema["locale"] = config.String()
     schema["verify_certificates"] = config.Boolean()
     schema["snapcast_enabled"] = config.Boolean()
     schema["snapcast_host"] = config.String()
     schema["snapcast_port"] = config.String()
     schema["snapcast_ssl"] = config.Boolean()
     schema["snapcast_stream"] = config.String()
     schema["spotify_authorization_url"] = config.String()
     schema["lastfm_authorization_url"] = config.String()
     schema["genius_authorization_url"] = config.String()
     schema["data_dir"] = config.String()  # Deprecated
     return schema
Exemple #8
0
 def setUp(self):  # noqa: N802
     self.schema = config.ConfigSchema('foo')
     self.schema['bar'] = config.ConfigValue()