Commit Graph

27 Commits

Author SHA1 Message Date
Thomas Adamcik
58976ef52d config: Lists need to handle missing values 2014-06-21 14:11:24 +02:00
Stein Magnus Jodal
b754885064 Fix all import order warnings 2014-05-07 20:08:43 +02:00
Thomas Adamcik
26ec956a08 config: Add deprecated config value support.
This makes it possible to mark a key as deprecated, this implies it will be
ignored if present, and never included in the resulting config.
2013-11-29 00:15:03 +01:00
Stein Magnus Jodal
05d4fa846f config: Deserialize Secret to unicode (fix #473)
MPD, Scrobbler, and Spotify extensions have been reviewed for need for changes
due to this, without anything being found.
2013-09-15 23:51:41 +02:00
Stein Magnus Jodal
5c7a496dc2 Fix flake8 warnings 2013-08-08 21:09:01 +02:00
Alexandre Petitjean
97848bc1a2 String config value can be optionnal AND have a choices list
Integer value can be optionnal
2013-07-31 10:05:20 +02:00
Alexandre Petitjean
bb3242d15a correct default port config for proxy and deserialize function 2013-07-30 08:37:24 +02:00
Alexandre Petitjean
f9da3fe3e9 implement remarks for #481, also add scheme as requested in #472 2013-07-30 08:17:10 +02:00
Alexandre Petitjean
05733cf844 correct remarks from #481 2013-07-29 22:22:28 +02:00
Alexandre Petitjean
de80c33753 Add proxy/port to configuration 2013-07-29 09:57:32 +02:00
Stein Magnus Jodal
2ad1bb8bb3 config: Raise ValueError if Path is asked to serialize unicode
If we accept unicode and try to encode using sys.getfilesystemencoding() then
it may work most of the time, but will fail if we get non-ASCII chars in the
unicode string and the file system encoding is e.g. ANSI-something because the
locale is C. Thus, I figure it is better to always fail if we try to serialize
Path from unicode strings. Paths should be maintained as bytes all the time.
2013-06-27 00:08:05 +02:00
Stein Magnus Jodal
59e3b9aec3 config: Formatting 2013-06-27 00:07:57 +02:00
Thomas Adamcik
9974f77f1b config: Serialize unicode to bytes using sys.getfilesystemencoding() 2013-04-28 23:31:41 +02:00
Thomas Adamcik
ac7edad86d config/path: Pass in expanded value in expanded path type 2013-04-25 22:39:06 +02:00
Thomas Adamcik
10f0632239 config: Encode any unicode passwords if found 2013-04-16 23:52:21 +02:00
Thomas Adamcik
f0131fdc93 config: Fix serialization of none 2013-04-16 21:37:55 +02:00
Thomas Adamcik
ee40f0385a config: Remove format from types API 2013-04-16 21:37:54 +02:00
Thomas Adamcik
211379a01c config: Unknown loglevels should serialize to blank string 2013-04-16 00:13:57 +02:00
Thomas Adamcik
51f89017fe config: Fix handling of None in Secret 2013-04-15 21:16:19 +02:00
Thomas Adamcik
ee57eb58a3 config: Strict config value init kwargs, also adds Secret 2013-04-15 00:07:31 +02:00
Thomas Adamcik
d5b8f2ab02 config: Make List use proper encode/decode helpers 2013-04-14 17:50:16 +02:00
Thomas Adamcik
7ed9b8adab config: Extract encode and decode helpers from String 2013-04-14 17:34:54 +02:00
Thomas Adamcik
9f18d50ab0 config: Fix escapes in string handling 2013-04-14 17:16:17 +02:00
Thomas Adamcik
6b89051b5e config: Add encoding support to strings 2013-04-14 16:15:58 +02:00
Stein Magnus Jodal
2d0e5ac117 docs: Document config API 2013-04-14 13:58:37 +02:00
Thomas Adamcik
63003abb2e config: Flake8 fixes 2013-04-13 20:40:13 +02:00
Thomas Adamcik
66be2dc551 config: Rename mopidy.config.values to types 2013-04-11 23:30:29 +02:00