Skip to content
Browse files
use PluginDicts correctly
Signed-off-by: Chris Warrick <>
  • Loading branch information
Kwpolska committed Apr 25, 2015
1 parent a73ed63 commit b9f081e2b77504f658ca0f96335ec842276a90c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
@@ -142,7 +142,7 @@ class CommandCheck(Command):
def _execute(self, options, args):
"""Check the generated site."""
self.logger = get_logger('check',
self.l = self._doitargs['cmds']['list'](config=self.config, **self._doitargs)
self.l = self._doitargs['cmds'].get_plugin('list')(config=self.config, **self._doitargs)

if not options['links'] and not options['files'] and not options['clean']:
@@ -1311,7 +1311,7 @@ def __init__(self, main, config, doitargs):
self._main = main
self._config = config
self._doitargs = doitargs
for k, v in self._main.get_cmds().items():
for k, v in self._doitargs['cmds'].to_dict().items():
# cleanup: run is doit-only, init is useless in an existing site
if k in ['run', 'init']:
@@ -1342,7 +1342,7 @@ def _run(self, cmd_args):
def _run_with_kw(self, cmd, *a, **kw):
# cyclic import hack
from nikola.plugin_categories import Command
cmd = self._main.get_cmds()[cmd]
cmd = self._doitargs['cmds'].get_plugin(cmd)
opt = cmd.get_options()
except TypeError:

0 comments on commit b9f081e

Please sign in to comment.