mozilla/input.mozilla.org — Issue #39: TB for pt-BR
Author: davedash
Created: 2011-11-30 21:43:15+00:00
State: open

Traceback (most recent call last):

File "/data/www/django/input.mozilla.com/reporter/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)

File "/data/www/django/input.mozilla.com/reporter/apps/input/decorators.py", line 102, in wrapped
return f(request, *args, **kwargs)

File "/data/www/django/input.mozilla.com/reporter/vendor/src/django/django/utils/decorators.py", line 93, in _wrapped_view
response = view_func(request, *args, **kwargs)

File "/data/www/django/input.mozilla.com/reporter/apps/input/decorators.py", line 43, in cached_view
return f(request, *args, **kwargs)

File "/data/www/django/input.mozilla.com/reporter/apps/search/views.py", line 290, in index
return render(request, template, data)

File "/data/www/django/input.mozilla.com/reporter/vendor/src/django/django/shortcuts/__init__.py", line 44, in render
return HttpResponse(loader.render_to_string(*args, **kwargs),

File "/data/www/django/input.mozilla.com/reporter/vendor/src/django/django/template/loader.py", line 188, in render_to_string
return t.render(context_instance)

File "/data/www/django/input.mozilla.com/reporter/vendor/src/jingo/jingo/__init__.py", line 189, in render
return super(Template, self).render(context_dict)

File "/data/www/django/input.mozilla.com/reporter/vendor/packages/jinja2/jinja2/environment.py", line 891, in render
return self.environment.handle_exception(exc_info, True)

File "/data/www/django/input.mozilla.com/reporter/apps/search/templates/search/mobile/search.html", line 1, in top-level template code
{% extends "base_mobile.html" %}

File "/data/www/django/input.mozilla.com/reporter/templates/base_mobile.html", line 30, in top-level template code
{% block content %}{% endblock %}

File "/data/www/django/input.mozilla.com/reporter/apps/search/templates/search/mobile/search.html", line 72, in block "content"
{{ big_count_block(opinion_count) }}

File "/data/www/django/input.mozilla.com/reporter/apps/search/helpers.py", line 71, in big_count_block
return render_template(tpl, new_context(**locals()))

File "/data/www/django/input.mozilla.com/reporter/apps/search/helpers.py", line 60, in render_template
t = register.env.get_template(template).render(context)

File "/data/www/django/input.mozilla.com/reporter/vendor/src/jingo/jingo/__init__.py", line 189, in render
return super(Template, self).render(context_dict)

File "/data/www/django/input.mozilla.com/reporter/vendor/packages/jinja2/jinja2/environment.py", line 891, in render
return self.environment.handle_exception(exc_info, True)

File "/data/www/django/input.mozilla.com/reporter/apps/search/templates/search/mobile/opinion_count.html", line 2, in top-level template code
{% trans num=count, cnt=count|numberfmt %}

File "/data/www/django/input.mozilla.com/reporter/vendor/packages/jinja2/jinja2/_markupsafe/__init__.py", line 98, in __mod__
return self.__class__(unicode.__mod__(self, arg))

File "/data/www/django/input.mozilla.com/reporter/vendor/packages/jinja2/jinja2/_markupsafe/__init__.py", line 212, in
__getitem__ = lambda s, x: _MarkupEscapeHelper(s.obj[x])

KeyError: u'count'

,
POST:,
COOKIES:{'WT_FPC': 'id=189.64.146.184-3923025488.30191522:lv=1322665160666:ss=1322665152921',
'multidb_pin_writes': 'y'},
META:{'DOCUMENT_ROOT': '/data/www/django/input.mozilla.com/reporter',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
'HTTP_ACCEPT_LANGUAGE': 'pt-pt,pt;q=0.8,en;q=0.5,en-us;q=0.3',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': 'WT_FPC=id=189.64.146.184-3923025488.30191522:lv=1322665160666:ss=1322665152921; multidb_pin_writes=y',
'HTTP_HOST': 'm.input.mozilla.com',
'HTTP_REFERER': 'http://m.input.mozilla.com/pt-PT/feedback/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Android; Linux armv7l; rv:8.0) Gecko/20111104 Firefox/8.0 Fennec/8.0',
'HTTP_X_CLUSTER_CLIENT_IP': '189.64.146.184',
'HTTP_X_MOBILE': '1',
'PATH_INFO': u'/pt-PT/',
'PATH_TRANSLATED': '/data/www/django/input.mozilla.com/reporter/wsgi/reporter.wsgi/pt-PT/',
'QUERY_STRING': '',
'REMOTE_ADDR': '10.8.81.200',
'REMOTE_PORT': '44132',
'REQUEST_METHOD': 'GET',
'REQUEST_URI': '/pt-PT/',
'SCRIPT_FILENAME': '/data/www/django/input.mozilla.com/reporter/wsgi/reporter.wsgi',
'SCRIPT_NAME': u'',
'SERVER_ADDR': '10.8.81.21',
'SERVER_ADMIN': 'webmaster@mozilla.com',
'SERVER_NAME': 'm.input.mozilla.com',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SIGNATURE': '',
'SERVER_SOFTWARE': 'Apache',
'mod_wsgi.application_group': 'input.mozilla.com|',
'mod_wsgi.callable_object': 'application',
'mod_wsgi.handler_script': '',
'mod_wsgi.input_chunked': '0',
'mod_wsgi.listener_host': '',
'mod_wsgi.listener_port': '80',
'mod_wsgi.process_group': 'input',
'mod_wsgi.request_handler': 'wsgi-script',
'mod_wsgi.script_reloading': '1',
'mod_wsgi.version': (3, 3),
'wsgi.errors': ,
'wsgi.file_wrapper': ,
'wsgi.input': ,
'wsgi.loaded': datetime.datetime(2011, 11, 30, 12, 13, 21, 845346),
'wsgi.multiprocess': True,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 1)}>