diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-12-11 15:38:05 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-12-11 15:38:05 +0000 |
commit | 11320f095eff59e5fd266c747d6d2d4a2cd96637 (patch) | |
tree | bd971b418813bffa9f376f5748db75a95f29227b /alot/commands/__init__.py | |
parent | 8a54c31255fa29a7a441db4e3ae750e09717705f (diff) |
move hook lookups to AlotConfigParser
issue #146
Diffstat (limited to 'alot/commands/__init__.py')
-rw-r--r-- | alot/commands/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/commands/__init__.py b/alot/commands/__init__.py index 2fbb8552..76ba0e0c 100644 --- a/alot/commands/__init__.py +++ b/alot/commands/__init__.py @@ -191,8 +191,8 @@ def commandfactory(cmdline, mode='global'): parms.update(forcedparms) logging.debug('PARMS: %s' % parms) - parms['prehook'] = alot.settings.hooks.get('pre_' + cmdname) - parms['posthook'] = alot.settings.hooks.get('post_' + cmdname) + parms['prehook'] = alot.settings.config.get_hook('pre_' + cmdname) + parms['posthook'] = alot.settings.config.get_hook('post_' + cmdname) logging.debug('cmd parms %s' % parms) return cmdclass(**parms) |