[traceback] TypeError: install_button() takes exactly 2 arguments (3 given)

RESOLVED FIXED

Status

--
major
RESOLVED FIXED
8 years ago
3 years ago

People

(Reporter: stephend, Unassigned)

Tracking

unspecified
Bug Flags:
in-testsuite ?

Details

(URL)

(Reporter)

Description

8 years ago
https://addons.allizom.org/z/en-US/firefox/addons/smorgasbord bombs out with:

Traceback (most recent call last):

  File "/data/amo_python/www/preview/zamboni/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/data/amo_python/www/preview/zamboni/apps/addons/buttons.py", line 375, in smorgasbord
    {'addons': addons, 'beta': beta})

  File "/data/amo_python/www/preview/zamboni/vendor/src/jingo/jingo/__init__.py", line 78, in render
    rendered = render_to_string(request, template, context)

  File "/data/amo_python/www/preview/zamboni/vendor/src/jingo/jingo/__init__.py", line 96, in render_to_string
    return template.render(**get_context())

  File "/usr/lib/python2.6/site-packages/jinja2/environment.py", line 891, in render
    return self.environment.handle_exception(exc_info, True)

  File "/data/amo_python/www/preview/zamboni/apps/addons/templates/addons/smorgasbord.html", line 16, in top-level template code
    <blockquote>{{ addon.summary }}</blockquote>

  File "/data/amo_python/www/preview/zamboni/templates/base_side_categories.html", line 1, in top-level template code
    {% extends "base.html" %}

  File "/data/amo_python/www/preview/zamboni/templates/base.html", line 99, in top-level template code
    {% block main_content %}

  File "/data/amo_python/www/preview/zamboni/templates/base_side_categories.html", line 9, in block "main_content"
    {% block content %}{% endblock %}

  File "/data/amo_python/www/preview/zamboni/apps/addons/templates/addons/smorgasbord.html", line 24, in block "content"
    {{ item(addon) }}

  File "/data/amo_python/www/preview/zamboni/apps/addons/templates/addons/smorgasbord.html", line 12, in template
    {{ install_button(addon, version) }}

TypeError: install_button() takes exactly 2 arguments (3 given)
(Reporter)

Updated

8 years ago
Severity: normal → major
Flags: in-testsuite?
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
(Assignee)

Updated

3 years ago
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.