Commit Graph

3850 Commits

Author SHA1 Message Date
Thomas Adamcik
29a4ff040e config: Make list return tuples so we get imuttable data. 2013-04-02 19:19:24 +02:00
Thomas Adamcik
dcd0d7e813 ext: Rename ext_name to name and provide ext_name property that gives ext.$name 2013-04-02 19:16:49 +02:00
Thomas Adamcik
7c124d0f72 config/ext: fitler enabled extensions. 2013-04-02 19:14:46 +02:00
Thomas Adamcik
47570fcddc config: Split load and validate config into two. 2013-04-02 19:14:46 +02:00
Thomas Adamcik
7051c15539 config: Start reworking flow in main towards using new config. 2013-04-02 19:14:46 +02:00
Thomas Adamcik
91be3e379f config: Let user know what files we are loading. 2013-04-02 19:14:46 +02:00
Thomas Adamcik
f8b22f32e7 ext: Make info logging for loading extensions less verbose. 2013-04-02 19:14:46 +02:00
Thomas Adamcik
6f39bde566 config: Start passing dummy config explicitly to audio/backends/frontends. 2013-04-02 19:14:46 +02:00
Stein Magnus Jodal
8dddc6d566 http: Fix docs typo 2013-04-02 17:58:10 +02:00
Stein Magnus Jodal
a341d3e0c4 main: Collect and validate config from all sources 2013-04-02 12:23:41 +02:00
Stein Magnus Jodal
2e678ffe8f ext: Change entry point from 'mopidy.extension' to 'mopidy.ext' to be more consistent 2013-04-02 12:07:35 +02:00
Stein Magnus Jodal
7d78d02d59 ext: Add both dist_name and ext_name to Extension class 2013-04-02 12:04:03 +02:00
Stein Magnus Jodal
f80f9d878e docs: Tweak extensiondev docs 2013-04-02 11:51:48 +02:00
Stein Magnus Jodal
12ff51ceba ext: Replace validate_config() with get_config_schema() 2013-04-02 11:34:33 +02:00
Stein Magnus Jodal
28096ce259 config: Add default core config 2013-04-02 01:33:29 +02:00
Stein Magnus Jodal
32277d158a main: Load extensions earlier 2013-04-02 01:33:29 +02:00
Stein Magnus Jodal
09b6859752 docs: Update extensiondev implementation plan 2013-04-01 23:59:40 +02:00
Thomas Adamcik
4db771ace7 Merge pull request #381 from jodal/feature/add-ext-config
Add default config and config schemas to extensions
2013-04-01 14:55:44 -07:00
Stein Magnus Jodal
0c2d16adc6 local: Return schema 2013-04-01 23:49:23 +02:00
Stein Magnus Jodal
54164007c5 docs: Update extensiondev docs to match real usage 2013-04-01 23:45:23 +02:00
Stein Magnus Jodal
1ac2fec4a5 docs: Tweak module docs formatting 2013-04-01 23:45:23 +02:00
Stein Magnus Jodal
fc33bdaedb http: Add default config and config schema 2013-04-01 23:45:23 +02:00
Stein Magnus Jodal
7fd21bf0c1 mpris: Add default config and config schema 2013-04-01 23:45:23 +02:00
Stein Magnus Jodal
7ea233b7f9 lastfm: Add default config and config schema 2013-04-01 23:45:23 +02:00
Stein Magnus Jodal
aab7c01c94 mpd: Add default config and config schema 2013-04-01 23:45:23 +02:00
Stein Magnus Jodal
8b538c4522 stream: Add default config and config schema 2013-04-01 23:45:23 +02:00
Stein Magnus Jodal
74adefcad1 local: Add default config and config schema 2013-04-01 23:45:23 +02:00
Stein Magnus Jodal
d6d3e2be35 spotify: Add config schema 2013-04-01 23:45:23 +02:00
Stein Magnus Jodal
aba8329660 Merge pull request #380 from adamcik/feature/config-optional
config: Add optional setting to config values and improve tests.
2013-04-01 14:45:02 -07:00
Thomas Adamcik
8cb800765f Merge branch 'develop' into feature/config
Conflicts:
	mopidy/utils/config.py
2013-04-01 23:41:15 +02:00
Thomas Adamcik
6c5ac28034 config: Update test names for consistency. 2013-04-01 23:40:05 +02:00
Thomas Adamcik
c18df18395 config: Document what each config value supports. 2013-04-01 23:38:44 +02:00
Thomas Adamcik
e504ca0207 config: Fix typo. 2013-04-01 23:30:05 +02:00
Thomas Adamcik
98269f4ed1 config: Add optional setting to config values and improve tests. 2013-04-01 23:24:42 +02:00
Stein Magnus Jodal
4a8b7c763e docs: Remove py_modules comment from example setup.py 2013-04-01 22:10:18 +02:00
Stein Magnus Jodal
f3004ed4d2 config: Fix flake8 warnings 2013-04-01 22:05:10 +02:00
Thomas Adamcik
c416893fb3 ext: Update suggestion for config validation mechanics. 2013-04-01 21:57:53 +02:00
Stein Magnus Jodal
b91c456c90 Merge pull request #379 from adamcik/feature/config
Add mopidy.utils.config with new ConfigValue and ConfigSchema classes.
2013-04-01 12:42:59 -07:00
Thomas Adamcik
5283d1e2b2 main: Add ConfigError test. 2013-04-01 21:35:01 +02:00
Thomas Adamcik
5e608c18dc config: re-add ConfigError.__iter__ 2013-04-01 21:26:48 +02:00
Thomas Adamcik
50980723f8 Merge branch 'develop' into feature/config 2013-04-01 21:25:07 +02:00
Thomas Adamcik
3509ec4b37 config: Address review comments. 2013-04-01 21:21:59 +02:00
Thomas Adamcik
e00b7a63f0 config: Add mopidy.config to hold config schemas and eventually settings access and loading. 2013-04-01 21:03:16 +02:00
Stein Magnus Jodal
bddb90e490 docs: Add 'ext.' prefix to config sections 2013-04-01 20:44:23 +02:00
Thomas Adamcik
b4c553e201 config: Add LogLevelConfigSchema. 2013-04-01 20:33:22 +02:00
Thomas Adamcik
55e798c806 Merge pull request #378 from jodal/feature/remove-backends-and-frontends-settings
Remove backends and frontends settings
2013-04-01 11:29:18 -07:00
Thomas Adamcik
980792e527 config: Add ExtensionConfigSchema. 2013-04-01 20:23:34 +02:00
Stein Magnus Jodal
aa1f8199c2 Remove the FRONTENDS setting 2013-04-01 20:22:29 +02:00
Stein Magnus Jodal
74788a2ccb Remove the BACKENDS setting 2013-04-01 20:14:20 +02:00
Thomas Adamcik
0535084162 config: Add config schema and tests.
Config schemas are used to group config values and check that each of them is
deserialized corretly, that none are missing and that there are no unkown keys
present.
2013-04-01 20:14:04 +02:00