diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-07-07 12:47:49 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-07-07 12:49:16 +0100 |
commit | eb9ed7fc7c7802af1e58d47c0df7c0afa0a3726d (patch) | |
tree | 61729e36ded17e60597f8ae83cbe29de86d9bc59 /alot/settings | |
parent | 3c539e1c7b37f772d67f4eaf95c590030f91bcc1 (diff) |
rename threadline order --> parts
Diffstat (limited to 'alot/settings')
-rw-r--r-- | alot/settings/theme.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/alot/settings/theme.py b/alot/settings/theme.py index 2b708ce6..b3a47b1b 100644 --- a/alot/settings/theme.py +++ b/alot/settings/theme.py @@ -31,9 +31,11 @@ class Theme(object): # make sure every entry in 'order' lists have their own subsections for sec in self._config['search']: if sec.startswith('threadline'): + logging.debug(sec) threadline = self._config['search'][sec] - if 'order' in threadline: - listed = set(threadline['order']) + logging.debug(threadline) + if threadline['parts'] is not None: + listed = set(threadline['parts']) present = set(threadline.sections) difference = listed.difference(present) if difference: @@ -79,14 +81,13 @@ class Theme(object): matches(candidate, thread): match = candidate break - #logging.debug('match: %s' % match) # fill in values res = {} res['normal'] = pickcolour(match.get('normal', default['normal'])) res['focus'] = pickcolour(match.get('focus', default['focus'])) - res['order'] = match.get('order', default['order']) - for part in res['order']: + res['parts'] = match.get('parts', default['parts']) + for part in res['parts']: res[part] = {} res[part]['width'] = match[part].get('width') or ('fit', 0, 0) res[part]['alignment'] = match[part].get('alignment') |