Skip to content
Permalink
Browse files

Add docstrings and rename a function

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Feb 7, 2016
1 parent 2ce1c52 commit 3693bfe2e95c2305da7736c13522d98a1264d1ee
Showing with 5 additions and 3 deletions.
  1. +1 −1 nikola/plugins/command/install_theme.py
  2. +4 −2 nikola/plugins/command/theme.py
@@ -88,4 +88,4 @@ def _execute(self, options, args):
if listing:
p.list_available(url)
else:
p.do_install_loop(url, name)
p.do_install_deps(url, name)
@@ -118,11 +118,12 @@ def _execute(self, options, args):
elif uninstall:
return self.do_uninstall(uninstall)
elif install:
return self.do_install_loop(url, install)
return self.do_install_deps(url, install)
elif get_path:
return self.get_path(get_path)

def do_install_loop(self, url, name):
def do_install_deps(self, url, name):
"""Install themes and their dependencies."""
data = self.get_json(url)
# `name` may be modified by the while loop.
origname = name
@@ -184,6 +185,7 @@ def do_install(self, name, data):
return True

def do_uninstall(self, name):
"""Uninstall a theme."""
try:
path = utils.get_theme_path(name)
except Exception:

0 comments on commit 3693bfe

Please sign in to comment.
You can’t perform that action at this time.