diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-10-21 11:10:17 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-10-21 11:10:17 +0300 |
commit | 08b3960093c5fdcf8f3132f144bd1cbf14b55a10 (patch) | |
tree | 78d4b233c9ad6cbb534d4f6169c92d85ccbbbf22 | |
parent | 4d3291b0a01a56bf2adfd2047240a093cde4ce21 (diff) | |
download | jt-tmp-08b3960093c5fdcf8f3132f144bd1cbf14b55a10.tar.gz |
Fix string-list value merging from profiles
-rw-r--r-- | NEWS | 5 | ||||
-rw-r--r-- | jtlib/app.py | 4 |
2 files changed, 8 insertions, 1 deletions
@@ -1,6 +1,11 @@ NEWS for jt =========== +Version 0.11, released UNRELEASED +--------------------------------- + +* Fix merging of string-list type settings from a profile. + Version 0.10, released 2015-10-17 --------------------------------- diff --git a/jtlib/app.py b/jtlib/app.py index 5293e91..c2078b7 100644 --- a/jtlib/app.py +++ b/jtlib/app.py @@ -92,7 +92,9 @@ class JournalTool(cliapp.Application): raise cliapp.AppException( 'Profile %s uses unknown setting %s' % (profile, key)) - self.settings[key] = cp.get(profile, key) + value = cp.get(profile, key) + self.settings.set_from_raw_string( + 'profile %s' % profile, key, value) def drafts_dir(self): return os.path.join(self.settings['source'], 'drafts') |