Mercurial > kallithea
view .hgtags @ 6030:5dfaa9f1fdb2
templates: disable special mako error handler - ironically this gives better stack traces
Errors in templates could give truncated stack traces pointing at the mako
error handler:
...
File '.../kallithea/kallithea/controllers/files.py', line 202 in index
return render('files/files.html')
File '.../kallithea-venv/lib/python2.7/site-packages/pylons/templating.py', line 244 in render_mako
cache_type=cache_type, cache_expire=cache_expire)
File '.../kallithea-venv/lib/python2.7/site-packages/pylons/templating.py', line 219 in cached_template
return render_func()
File '.../kallithea-venv/lib/python2.7/site-packages/pylons/templating.py', line 241 in render_template
return literal(template.render_unicode(**globs))
File '.../kallithea-venv/lib/python2.7/site-packages/mako/template.py', line 452 in render_unicode
as_unicode=True)
File '.../kallithea-venv/lib/python2.7/site-packages/mako/runtime.py', line 803 in _render
**_kwargs_for_callable(callable_, data))
File '.../kallithea-venv/lib/python2.7/site-packages/mako/runtime.py', line 835 in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File '.../kallithea-venv/lib/python2.7/site-packages/mako/runtime.py', line 855 in _exec_template
_render_error(template, context, compat.exception_as())
File '.../kallithea-venv/lib/python2.7/site-packages/mako/runtime.py', line 864 in _render_error
result = template.error_handler(context, error)
File '.../kallithea-venv/lib/python2.7/site-packages/pylons/error.py', line 22 in handle_mako_error
raise (exc, None, sys.exc_info()[2])
AttributeError: 'tuple' object has no attribute 'node'
Without the mako error handler we get a full and useful stack trace - including
calls in generated but readable .html.py files.
File '.../kallithea/kallithea/controllers/files.py', line 202 in index
return render('files/files.html')
File '.../kallithea-venv/lib/python2.7/site-packages/pylons/templating.py', line 244 in render_mako
cache_type=cache_type, cache_expire=cache_expire)
File '.../kallithea-venv/lib/python2.7/site-packages/pylons/templating.py', line 219 in cached_template
return render_func()
File '.../kallithea-venv/lib/python2.7/site-packages/pylons/templating.py', line 241 in render_template
return literal(template.render_unicode(**globs))
File '.../kallithea-venv/lib/python2.7/site-packages/mako/template.py', line 452 in render_unicode
as_unicode=True)
File '.../kallithea-venv/lib/python2.7/site-packages/mako/runtime.py', line 803 in _render
**_kwargs_for_callable(callable_, data))
File '.../kallithea-venv/lib/python2.7/site-packages/mako/runtime.py', line 835 in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File '.../kallithea-venv/lib/python2.7/site-packages/mako/runtime.py', line 860 in _exec_template
callable_(context, *args, **kwargs)
File '.../data/templates/base/root.html.py', line 219 in render_body
__M_writer(escape(next.body()))
File '.../data/templates/base/base.html.py', line 57 in render_body
__M_writer(escape(next.main()))
File '.../data/templates/files/files.html.py', line 121 in render_main
runtime._include_file(context, u'files_ypjax.html', _template_uri)
File '.../kallithea-venv/lib/python2.7/site-packages/mako/runtime.py', line 730 in _include_file
callable_(ctx, **_kwargs_for_include(callable_, context._data, **kwargs))
File '.../data/templates/files/files_ypjax.html.py', line 57 in render_body
runtime._include_file(context, u'files_source.html', _template_uri)
File '.../kallithea-venv/lib/python2.7/site-packages/mako/runtime.py', line 730 in _include_file
callable_(ctx, **_kwargs_for_include(callable_, context._data, **kwargs))
File '.../data/templates/files/files_source.html.py', line 117 in render_body
__M_writer(escape(h.pygmentize_annotation(c.repo_name,c.file,linenos=True,anchorlinenos=True,lineanchors='L',cssclass="code-highlight")))
File '.../kallithea/kallithea/lib/helpers.py', line 360 in pygmentize_annotation
return literal(markup_whitespace(annotate_highlight(filenode, url_func(repo_name), **kwargs)))
File '.../kallithea/kallithea/lib/annotate.py', line 57 in annotate_highlight
highlighted = highlight(filenode.content, lexer, formatter)
File '.../kallithea-venv/lib/python2.7/site-packages/pygments/__init__.py', line 87 in highlight
return format(lex(code, lexer), formatter, outfile)
File '.../kallithea-venv/lib/python2.7/site-packages/pygments/__init__.py', line 66 in format
formatter.format(tokens, realoutfile)
File '.../kallithea-venv/lib/python2.7/site-packages/pygments/formatter.py', line 95 in format
return self.format_unencoded(tokensource, outfile)
File '.../kallithea-venv/lib/python2.7/site-packages/pygments/formatters/html.py', line 850 in format_unencoded
for t, piece in source:
File '.../kallithea/kallithea/lib/annotate.py', line 168 in _wrap_tablelinenos
for el in self.filenode.annotate))
File '.../kallithea/kallithea/lib/annotate.py', line 167 in <genexpr>
annotate = ''.join((self.annotate_from_changeset(el[2]())
File '.../kallithea/kallithea/lib/vcs/backends/hg/changeset.py', line 273 in get_file_annotate
sha = hex(annotate_data[0].node())
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 28 Jul 2016 16:28:34 +0200 |
parents | f40905c3257c |
children | 9b9258f5e2b2 |
line wrap: on
line source
c097458480a5972dd75d5695b61e855fd0ab371e rhodecode-0.0.0.7.0 8bdec09436cb7e4a764bd2ba50b84060e30eb34f rhodecode-0.0.0.7.1 1a18994cdc3bdd156ee93c7c0fb8d94a88f1f640 rhodecode-0.0.0.7.2 a3a7c3e03b76ee264a828cb1087970bb98bbffcd rhodecode-0.0.0.7.3 58b46f9194c347641bfc9a26697ef413a4761971 rhodecode-0.0.0.7.4 710e7a75bb6b8346cee3bd0ddda67592e4790268 rhodecode-0.0.0.7.5 ca80f8c0056211dad33483a50b913593516d7a6c rhodecode-0.0.0.7.6 0cf49c29c846fefeb4e1a222e4b1850e9e3eaa62 rhodecode-0.0.0.7.7 702c7e565c56a49c89414e81f28571c8e5b67408 rhodecode-0.0.0.7.8 c12f4d19c95065f313eefcd45eac9ef507f5fa55 rhodecode-0.0.0.7.9 558eb7c5028f24a90b5466ed16be13b213ba1fc2 rhodecode-0.0.0.8.0 a9814a642e11092b243ca01721254a04633a0ffc rhodecode-0.0.0.8.1 ccbe729908844884aea89d00fb14a6cb92e10c06 rhodecode-0.0.0.8.2 ca41d544dbdfd2f81bd0304168492a26276aadb6 rhodecode-0.0.0.8.3 2fa16ec5822da0c6fade3dd1ed9b6c0655e5dbbf rhodecode-0.0.0.8.4 16ba57d8fe2317c49dbd422afd07ab497687aa02 rhodecode-0.0.0.8.5 53128b6b9a4ddb6ee9554cbb83a082a6d1316b42 rhodecode-0.0.1.0.0rc4 afd98d1f817e6a6b52172735c22160239e615a6b rhodecode-0.0.1.0.0 bee56f209c40a6880f2f633b02227b5ee1f8ff5a rhodecode-0.0.1.0.1 d85b0948e53925ebbbc49e9f7967013a04f866e9 rhodecode-0.0.1.0.2 d9c8dddb96af521e346f05b88d515c536eef3d17 rhodecode-0.0.1.1.0 344f748517814ed0408a49e392dc625f4cc37fdc rhodecode-0.0.1.1.1 6c01c12eafb8cc72d4c4cbd121400fad755b2862 rhodecode-0.0.1.1.2 4fa80e0484ef5c33feaa9c39fc66916f410ba353 rhodecode-0.0.1.1.3 cb77867d69d3c5931712aac486c980a42ee90745 rhodecode-0.0.1.1.5 cb77867d69d3c5931712aac486c980a42ee90745 rhodecode-0.0.1.1.5 008bdfdd95c8bd31ae6d89f76c75c1f49cbcd0bc rhodecode-0.0.1.1.5 c5af1d3c861fb36b156224e75c2f55a97f54657d rhodecode-0.0.1.1.6 7327a0d1584cf28d33e738048af1f6809d499451 rhodecode-0.0.1.1.7 bd102f45950f779995a1beae42b6eb099cdd27b3 rhodecode-0.0.1.1.7 c8974135732aa0ceb841cee6df66e29f089b4963 rhodecode-0.0.1.1.8 c252049af24cd98eef5f4143fa3abbff3c912e29 rhodecode-0.0.1.2.0 0b8fba8ab90b01f811a50e6e7384989cced21d38 rhodecode-0.0.1.2.1 22273bec00ba2fd860c60a9277d3d7229e288e18 rhodecode-0.0.1.2.2 1ff606a7858dbd8a5f70b3da5cc89524bd0d84f9 rhodecode-0.0.1.2.3 a7a282a902b207ce34e830d643c79b7ab52e3b35 rhodecode-0.0.1.2.4 b6b611e7722e754abebaae6e265cbb4c823d344d rhodecode-0.0.1.2.5 dbc82e3362a25d2aece42060089824c4342efd17 rhodecode-0.0.1.3.0 79a95f338fd0115b2cdb77118f39e17d22ff505c rhodecode-0.0.1.3.1 9ab21c5ddb84935bea5c743b4e147ed5a398b30c rhodecode-0.0.1.3.2 934906f028b582a254e0028ba25e5d20dd32b9cd rhodecode-0.0.1.3.3 af21362474e3ab5aa0e2fbb1c872356f2c16c4f3 rhodecode-0.0.1.3.4 0e2792e04bd316fe64335cbe6a476031ac60b29b rhodecode-0.0.1.3.5 edfff9f37916389144d3a3644d0a7d7adfd79b11 rhodecode-0.0.1.3.6 9ae95fdeca184f2404205645f06c6597b74ef2db rhodecode-0.0.1.4.0 909143a4dde53c46d4f24abb426ec870471c7de1 rhodecode-0.0.1.4.1 d998cc84cf726798486a438763053f0e1dc1b646 rhodecode-0.0.1.4.2 3f5d40b9dd99ccb009ea2211ee2d4b594c634946 rhodecode-0.0.1.4.3 3148c08cf86f1849917e2d50f7ab7766c1550b0a rhodecode-0.0.1.4.4 a5f0bc867edc88be23eb808693e5393a97d4c54a rhodecode-0.0.1.5.0 3259dc7caea48687eab018ee646ae6ad7e7ef377 rhodecode-0.0.1.5.1 efe23d6c178c11d575a0214181276a3452776e48 rhodecode-0.0.1.5.2 1a498b11f1540f5b94b6f6009298f5dc3eaad9e9 rhodecode-0.0.1.5.3 3447862ad8c9ceba85857774c526e39fde3a2281 rhodecode-0.0.1.5.4 c15d7b336af58df9f1bbc8f8957464e7ea618d4c rhodecode-0.0.1.6.0rc1 78b53ee0d247f90d51b028307ff5717851b6c265 rhodecode-0.0.1.6.0 351ad34d56321349ff5bd38f537bd768b8efef2e rhodecode-0.0.1.7.0 1f71ef689d2a3c9978cea6591a1f4e9107a5ca83 rhodecode-0.0.1.7.1 cc48c1541c7e2e84114bf92a0f9cd4b8b1341545 0.0 d17e88a1a88a29f6fac948c94498129e405a40d3 0.1 ad0ce803b40cb17fc3988373052943e041030b02 0.2 c6e32714336345403adf76abb6ebf9b8116fcdc7 0.2.1 14f488a5dc4ca6647bc6acf12534fd137e968aa8 0.2.2 9b3e9e242f5c97cc0c7657e5ac93dce7de61ca16 0.3 9bf8eb837e785b6856ccfac264e977ce3ebe1535 0.3.1 a84d40e9481fcea4dafadee86b03f0dd401527d6 0.3.2