[traceback] TypeError: macro 'persona_categories' takes not more than 0 argument(s)

VERIFIED FIXED in 2013-04-25

Status

addons.mozilla.org Graveyard
Public Pages
P1
normal
VERIFIED FIXED
5 years ago
2 years ago

People

(Reporter: krupa, Assigned: cvan)

Tracking

({regression})

unspecified
2013-04-25
regression

Details

(Whiteboard: p=1, URL)

(Reporter)

Description

5 years ago
steps to reproduce:
1. Load https://addons-dev.allizom.org/en-US/firefox/themes/

traceback details:
"
    TypeError: macro 'persona_categories' takes not more than 0 argument(s)

Stacktrace (most recent call last):

  File "django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "newrelic/api/object_wrapper.py", line 198, in __call__
    self._nr_instance, args, kwargs)
  File "newrelic/hooks/framework_django.py", line 447, in wrapper
    return wrapped(*args, **kwargs)
  File "mobility/decorators.py", line 23, in wrapper
    return f(request, *args, **kw)
  File "browse/views.py", line 381, in personas
    return jingo.render(request, template, ctx)
  File "jingo/__init__.py", line 80, in render
    rendered = render_to_string(request, template, context)
  File "jingo/__init__.py", line 98, in render_to_string
    return template.render(**get_context())
  File "newrelic/api/object_wrapper.py", line 198, in __call__
    self._nr_instance, args, kwargs)
  File "newrelic/api/function_trace.py", line 70, in dynamic_wrapper
    return wrapped(*args, **kwargs)
  File "jinja2/environment.py", line 891, in render
    return self.environment.handle_exception(exc_info, True)
  File "/data/www/addons-dev.allizom.org/zamboni/apps/browse/templates/browse/personas/category_landing.html", line 12, in top-level template code
    {{ url('browse.personas', category.slug)|urlparams(sort=key) }}
  File "/data/www/addons-dev.allizom.org/zamboni/apps/browse/templates/browse/personas/base.html", line 52, in top-level template code
    <p><a href="{{ url('devhub.docs', 'themes') }}" class="learn-more">{{ _('Learn more') }}</a></p>
  File "/data/www/addons-dev.allizom.org/zamboni/templates/base.html", line 113, in top-level template code
    {% block main_content %}
  File "/data/www/addons-dev.allizom.org/zamboni/templates/base.html", line 116, in block "main_content"
    {% block content %}{% endblock %}
  File "/data/www/addons-dev.allizom.org/zamboni/apps/browse/templates/browse/personas/category_landing.html", line 109, in block "content"
    {{ persona_categories(request.APP == amo.FIREFOX) }}
"
(Assignee)

Comment 1

5 years ago
https://github.com/mozilla/zamboni/commit/5a9b95a
Assignee: nobody → cvan
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Keywords: regression
Priority: -- → P1
Resolution: --- → FIXED
Whiteboard: p=1
Target Milestone: --- → 2013-04-25
(Reporter)

Comment 2

5 years ago
verified fixed at https://addons-dev.allizom.org/en-US/firefox/themes/
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.