Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CATEGORY_ALLOW_HIERARCHIES does not work #2681

Closed
dvzubarev opened this issue Feb 25, 2017 · 2 comments
Closed

CATEGORY_ALLOW_HIERARCHIES does not work #2681

dvzubarev opened this issue Feb 25, 2017 · 2 comments
Assignees
Milestone

Comments

@dvzubarev
Copy link

Environment (if reporting a bug)

Python Version:
3.5.2

Nikola Version:
7.8.3 and master

Operating System:
Ubuntu 16.04

Description:

I installed nikola in virtualenv from pip.
Then I set CATEGORY_ALLOW_HIERARCHIES to True in conf.py.
I created new post and edit category to be ".. category: code/python"
The error when building site:

TaskError - taskid:render_taxonomies:output/categories/cat_code/index.html
PythonAction Error
Traceback (most recent call last):
  File "/home/denin/Workspace/nikola/nikola3/lib/python3.5/site-packages/doit/action.py", line 403, in execute
    returned_value = self.py_callable(*self.args, **kwargs)
  File "/home/denin/Workspace/nikola/nikola3/lib/python3.5/site-packages/nikola/nikola.py", line 1396, in render_template
    template_name, None, local_context)
  File "/home/denin/Workspace/nikola/nikola3/lib/python3.5/site-packages/nikola/plugins/template/mako.py", line 117, in render_template
    data = template.render_unicode(**context)
  File "/home/denin/Workspace/nikola/nikola3/lib/python3.5/site-packages/mako/template.py", line 471, in render_unicode
    as_unicode=True)
  File "/home/denin/Workspace/nikola/nikola3/lib/python3.5/site-packages/mako/runtime.py", line 838, in _render
    **_kwargs_for_callable(callable_, data))
  File "/home/denin/Workspace/nikola/nikola3/lib/python3.5/site-packages/mako/runtime.py", line 873, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/home/denin/Workspace/nikola/nikola3/lib/python3.5/site-packages/mako/runtime.py", line 899, in _exec_template
    callable_(context, *args, **kwargs)
  File "/home/denin/Workspace/nikola/nikola3/my_first_site/cache/.mako.tmp/base.tmpl.py", line 127, in render_body
    context['self'].content(**pageargs)
  File "/home/denin/Workspace/nikola/nikola3/my_first_site/cache/.mako.tmp/tag.tmpl.py", line 137, in render_content
    for name, link in subcategories:
ValueError: too many values to unpack (expected 2)
@Kwpolska
Copy link
Member

Are you using a custom theme, or bootstrap3?

@dvzubarev
Copy link
Author

I used the default one. THEME = "bootstrap3"
BTW, it works in 7.8.1

@Kwpolska Kwpolska reopened this Feb 25, 2017
@Kwpolska Kwpolska added the bug label Feb 25, 2017
@Kwpolska Kwpolska added this to the v7.8.4 milestone Feb 25, 2017
Kwpolska added a commit that referenced this issue Feb 25, 2017
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
@Kwpolska Kwpolska self-assigned this Feb 25, 2017
Kwpolska added a commit that referenced this issue Feb 25, 2017
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Kwpolska added a commit that referenced this issue Feb 26, 2017
Fix #2681 -- fix crashes when rendering subcategories
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants