summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-10-21 11:10:17 +0300
committerLars Wirzenius <liw@liw.fi>2015-10-21 11:10:17 +0300
commit08b3960093c5fdcf8f3132f144bd1cbf14b55a10 (patch)
tree78d4b233c9ad6cbb534d4f6169c92d85ccbbbf22
parent4d3291b0a01a56bf2adfd2047240a093cde4ce21 (diff)
downloadjt-08b3960093c5fdcf8f3132f144bd1cbf14b55a10.tar.gz
Fix string-list value merging from profiles
-rw-r--r--NEWS5
-rw-r--r--jtlib/app.py4
2 files changed, 8 insertions, 1 deletions
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')