Skip to content
Myr

We will have a 2.5.1 release

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 850629f · Browse files · 3 files+12 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+12 added−5 removed

  • other:+12 added−5 removed

3 files+12 added−5 removed

modified:jinja2/testsuite/ext.py+9 added-1 removed
49 unmodified lines
50 '{{ user_count }} users online{% endtrans %}',51 'stringformat.html': '{{ _("User: %(num)s", num=user_count) }}',52 'ngettext.html': '{{ ngettext("%(num)s apple", "%(num)s apples", apples) }}',53 'ngettext_long.html': '{% trans num=apples %}{{ num }} apple{% pluralize %}'54 '{{ num }} apples{% endtrans %}'54 '{{ num }} apples{% endtrans %}',55 'transvars1.html': '{% trans %}User: {{ num }}{% endtrans %}',56 'transvars2.html': '{% trans num=count %}User: {{ num }}{% endtrans %}'57}585960languages = {
285 unmodified lines
346 # newstyle gettext of course347 assert re.search(r"l_ngettext, u?'\%\(num\)s apple', u?'\%\(num\)s "348 r"apples', 3", source) is not None349350 def test_trans_vars(self):351 t1 = newstyle_i18n_env.get_template('transvars1.html')352 t2 = newstyle_i18n_env.get_template('transvars2.html')353 assert t1.render(num=1, LANGUAGE='de') == 'Benutzer: 1'354 assert t2.render(count=23, LANGUAGE='de') == 'Benutzer: 23'355356357class AutoEscapeTestCase(JinjaTestCase):358359 def test_scoped_setting(self):360 env = Environment(extensions=['jinja2.ext.autoescape'],
80 unmodified lines
modified:jinja2/_speedups.c-1 removed
200 unmodified lines
201 Py_INCREF(Py_None);202 return Py_None;203}204205205static PyMethodDef module_methods[] = {206 {"escape", (PyCFunction)escape, METH_O,207 "escape(s) -> markup\n\n"208 "Convert the characters &, <, >, ', and \" in string s to HTML-safe\n"
50 unmodified lines
modified:CHANGES+3 added-3 removed
1Jinja2 Changelog2================34Version 2.65-----------6(codename to be selected, release date to be announced)4Version 2.5.15-------------6(bugfix release, release date to be announced)78- StopIteration exceptions raised by functions called from templates9 are now intercepted and converted to undefineds. This solves a10 lot of debugging grief. (StopIteration is used internally to
184 unmodified lines