Thomas Adamcik
0479adf7fc
Fix s/_FOLDER/_PATH/, move cache to mopidy instead of spotify folder and fix docs.
2011-07-18 00:15:58 +02:00
Thomas Adamcik
f483908761
Switch to using SETTINGS_FOLDER and SETTINGS_FILE derived from xdg
2011-07-17 02:12:55 +02:00
Thomas Adamcik
f365786c9d
Switch to get_user_config_dir() instead of .mopidy
2011-07-17 02:12:55 +02:00
Thomas Adamcik
e2597ab23f
Fix minor bug in settings subsystem that prevented _FILE/PATH settings to be set to None
2011-07-17 02:11:06 +02:00
Stein Magnus Jodal
6a77922905
Ask about missing settings in alphabetic order
2011-06-15 22:19:41 +02:00
Stein Magnus Jodal
c0a39afa31
Do not interactively ask for settings when they are already set locally
2011-06-10 14:30:32 +02:00
Johannes Knutsen
5e0a85c1b6
Get encoding from sys module directly instead of getpass.sys
2011-06-09 20:38:52 +02:00
Johannes Knutsen
c31db04979
Move private methods to be closer it's caller
2011-06-09 20:08:50 +02:00
Johannes Knutsen
efa38d2449
Read interactive settings optional by adding --interactive option
2011-06-09 20:04:13 +02:00
Johannes Knutsen
8d240ea686
Read missing local settings from stdin by default
2011-06-09 20:04:13 +02:00
Stein Magnus Jodal
2321550079
Fix import cycle
2011-06-09 17:35:22 +02:00
Johannes Knutsen
e97b32d041
rename SPOTIFY_HIGH_BITRATE setting to SPOTIFY_BITRATE, and use actual bitrate value to define preferred bitrate
2011-06-09 17:18:35 +02:00
Stein Magnus Jodal
7d7fb8d906
Compare default passwords with the unmasked current password
2011-05-19 22:44:31 +02:00
Stein Magnus Jodal
6778718837
Remove 'Settings:' label and indentation of all settings
2011-05-19 22:38:16 +02:00
Stein Magnus Jodal
0b2b0c5c3c
Show current setting value on same line as setting name
2011-05-19 22:37:09 +02:00
Stein Magnus Jodal
a760a7fdb4
Use pprint to format long setting values
2011-05-19 22:31:04 +02:00
Stein Magnus Jodal
7074b4928c
Add some tests for --list-settings formatting
2011-05-19 22:30:09 +02:00
Thomas Adamcik
65db8c4a7b
Kill off *_OUTPUT_OVERRIDEs in favour of just having CustomOutput to handle corner cases
2011-05-07 23:18:31 +02:00
Thomas Adamcik
eceba71273
Unify naming of output settings
2011-04-25 17:30:55 +02:00
Thomas Adamcik
1c233a3f8a
Replace CustomOutput with override for LocalOutput
2011-04-25 17:14:31 +02:00
Thomas Adamcik
c7ccd0c2d4
More fixes with respect to refactoring
2011-04-25 01:31:28 +02:00
Stein Magnus Jodal
e150a24dfe
Review patch for GH-63
...
- Moved mask_value_if_secret til after the method using it. Most
important/interesting method first, lower level/more detailed later.
- Made the logic in mask_value_if_secret simpler to understand, I think,
by making the two different cases more obvious.
- Split the test in two, as it actually tested two different cases.
- Changed the test names to explain what should happen, and not just
what is tested.
- Add a new test that tests the case which caused the crash: a setting
being None.
2011-02-09 17:08:40 +01:00
Martins Grunskis
f33c65ddfe
mopidy --list-settings fails on fresh install
2011-02-09 17:05:29 +02:00
Stein Magnus Jodal
7f4ce3be8a
Fix SettingsProxy.__getattr__ to support settings that are None or 0.
2011-01-21 16:29:04 +01:00
Thomas Adamcik
c513d0f6e7
Rename settings that have dirs or file to _PATH and _FILE
2010-11-01 00:37:55 +01:00
Thomas Adamcik
3661800563
Add _FILE handling
2010-11-01 00:37:55 +01:00
Thomas Adamcik
70fe571b05
Add special casing of _PATH settings
2010-11-01 00:37:55 +01:00
Stein Magnus Jodal
e984e24168
Fix or ignore more pylint warnings
2010-10-24 23:51:21 +02:00
Stein Magnus Jodal
0cbce06037
Rename --dump to --save-debug-log. Rename related settings.
2010-08-24 21:00:10 +02:00
Stein Magnus Jodal
5868506573
Only censor password in settings listing if the password is set
2010-08-24 10:12:03 +02:00
Thomas Adamcik
947b91aa5c
Add basic runtime setting support
2010-08-23 23:30:20 +02:00
Stein Magnus Jodal
1ae172d0c1
Move mopidy.utils.{ => log}.indent
2010-08-20 16:38:59 +02:00
Stein Magnus Jodal
5e10ad0e05
Replace SERVER and FRONTEND with a new FRONTENDS setting
2010-08-20 00:38:36 +02:00
Stein Magnus Jodal
107c87477e
Rename mopidy.settings.{active => current}
2010-08-18 13:05:46 +02:00
Stein Magnus Jodal
1872082932
Calculate the active settings dynamically, so tests can do mopidy.settings.local.clear() to get rid of local settings
2010-08-18 13:03:24 +02:00
Stein Magnus Jodal
6b834e6a33
Fix loading of local settings when local settings is not present
2010-08-18 00:06:45 +02:00
Stein Magnus Jodal
da184ac896
Add '--list-settings' option
2010-08-17 02:34:10 +02:00
Stein Magnus Jodal
61059e7610
Use logging for settings validation errors
2010-08-17 02:02:52 +02:00
Stein Magnus Jodal
9cb84002bc
Report multiple settings errors at once
2010-08-17 01:58:31 +02:00
Stein Magnus Jodal
12e5bc39e3
Add settings validation
2010-08-17 01:45:58 +02:00
Stein Magnus Jodal
7afc74d80b
Cleanup settings magic
2010-08-17 01:23:37 +02:00