From 08b3960093c5fdcf8f3132f144bd1cbf14b55a10 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 21 Oct 2015 11:10:17 +0300 Subject: Fix string-list value merging from profiles --- NEWS | 5 +++++ jtlib/app.py | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 236773a..70bb337 100644 --- a/NEWS +++ b/NEWS @@ -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') -- cgit v1.2.1