From: Armin Ronacher Date: Wed, 5 Jun 2013 09:33:02 +0000 (+0100) Subject: Fixed some incorrect docs X-Git-Tag: 2.8~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8261473c68993cbbf3460351a1a75be2a04ab245;p=thirdparty%2Fjinja.git Fixed some incorrect docs --- diff --git a/jinja2/filters.py b/jinja2/filters.py index 8df262a0..4ee4e040 100644 --- a/jinja2/filters.py +++ b/jinja2/filters.py @@ -842,14 +842,15 @@ def do_map(*args, **kwargs): @contextfilter def do_select(*args, **kwargs): - """Filters a sequence of objects by appying a test to either the object - or the attribute and only selecting the ones with the test succeeding. + """Filters a sequence of objects by appying a test to the object and only + selecting the ones with the test succeeding. Example usage: .. sourcecode:: jinja {{ numbers|select("odd") }} + {{ numbers|select("odd") }} .. versionadded:: 2.7 """ @@ -858,8 +859,8 @@ def do_select(*args, **kwargs): @contextfilter def do_reject(*args, **kwargs): - """Filters a sequence of objects by appying a test to either the object - or the attribute and rejecting the ones with the test succeeding. + """Filters a sequence of objects by appying a test to the object and + rejecting the ones with the test succeeding. Example usage: @@ -874,8 +875,8 @@ def do_reject(*args, **kwargs): @contextfilter def do_selectattr(*args, **kwargs): - """Filters a sequence of objects by appying a test to either the object - or the attribute and only selecting the ones with the test succeeding. + """Filters a sequence of objects by appying a test to an attribute of an + object and only selecting the ones with the test succeeding. Example usage: @@ -891,8 +892,8 @@ def do_selectattr(*args, **kwargs): @contextfilter def do_rejectattr(*args, **kwargs): - """Filters a sequence of objects by appying a test to either the object - or the attribute and rejecting the ones with the test succeeding. + """Filters a sequence of objects by appying a test to an attribute of an + object or the attribute and rejecting the ones with the test succeeding. .. sourcecode:: jinja