core: Remove core "extension" as it is not needed for config

This commit is contained in:
Thomas Adamcik 2015-07-20 17:01:40 +02:00
parent 8bb29cd28e
commit 2c30934c2e
4 changed files with 4 additions and 28 deletions

View File

@ -15,6 +15,10 @@ from mopidy.internal import path, versioning
logger = logging.getLogger(__name__)
_core_schema = ConfigSchema('core')
# MPD supports at most 10k tracks, some clients segfault when this is exceeded.
_core_schema['max_tracklist_length'] = Integer(minimum=1, maximum=10000)
_logging_schema = ConfigSchema('logging')
_logging_schema['color'] = Boolean()
_logging_schema['console_format'] = String()

View File

@ -2,7 +2,6 @@ from __future__ import absolute_import, unicode_literals
# flake8: noqa
from .actor import Core
from .ext import Extension
from .history import HistoryController
from .library import LibraryController
from .listener import CoreListener

View File

@ -1,26 +0,0 @@
from __future__ import absolute_import, unicode_literals
import os
import mopidy
from mopidy import config, ext
class Extension(ext.Extension):
dist_name = 'Mopidy-Core'
ext_name = 'core'
version = mopidy.__version__
def get_default_config(self):
conf_file = os.path.join(os.path.dirname(__file__), 'ext.conf')
return config.read(conf_file)
def get_config_schema(self):
schema = super(Extension, self).get_config_schema()
schema['max_tracklist_length'] = config.Integer(
minimum=1, maximum=10000)
return schema
def setup(self, registry):
pass # core has nothing to register

View File

@ -34,7 +34,6 @@ setup(
'mopidy = mopidy.__main__:main',
],
'mopidy.ext': [
'core = mopidy.core:Extension',
'http = mopidy.http:Extension',
'local = mopidy.local:Extension',
'file = mopidy.file:Extension',