diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-01-25 09:36:23 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-01-25 10:37:20 -0800 |
commit | de85d34545fc8f67b80697a73a2d676b740e9ddd (patch) | |
tree | 368c4bf753d9549c0182a8a66035a0429f823530 /alot/settings/theme.py | |
parent | 0ec97d98e82d10024419199b93c1d13a1cedc5eb (diff) |
move alot/settings/checks to alot/utils/configobj
This is just more reorganization.
Diffstat (limited to 'alot/settings/theme.py')
-rw-r--r-- | alot/settings/theme.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/alot/settings/theme.py b/alot/settings/theme.py index c05a4db0..f2a59763 100644 --- a/alot/settings/theme.py +++ b/alot/settings/theme.py @@ -5,11 +5,8 @@ from __future__ import absolute_import import os +from ..utils import configobj as checks from .utils import read_config -from .checks import align_mode -from .checks import attr_triple -from .checks import width_tuple -from .checks import force_list from .errors import ConfigError DEFAULTSPATH = os.path.join(os.path.dirname(__file__), '..', 'defaults') @@ -26,10 +23,10 @@ class Theme(object): """ self._spec = os.path.join(DEFAULTSPATH, 'theme.spec') self._config = read_config(path, self._spec, - checks={'align': align_mode, - 'widthtuple': width_tuple, - 'force_list': force_list, - 'attrtriple': attr_triple}) + checks={'align': checks.align_mode, + 'widthtuple': checks.width_tuple, + 'force_list': checks.force_list, + 'attrtriple': checks.attr_triple}) self._colours = [1, 16, 256] # make sure every entry in 'order' lists have their own subsections threadline = self._config['search']['threadline'] |