Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
ó ÈÏRc@sÎdZddlZddlZddlmZddlmZddlmZddl m Z m Z m Z m Z mZmZddlmZddlmZdd lmZmZmZmZmZejd ƒZd „Zd „Zd „Zd„Zd„Z d„Z!edd„ƒZ#d„Z$d„Z%ee&d„ƒZ'd„Z(d„Z)e*dd„Z+ee*e*dd„ƒZ,de*d„Z-eddd„ƒZ.dd„Z/ed„ƒZ0ed „ƒZ1ed!„ƒZ2e*d"„Z3e*d#„Z4ede*d$„ƒZ5d%e*d&„Z6d'e*d(d)„Z7ed*e&dd+„ƒZ8d,„Z9d-d.„Z:d/d0„Z;d1„Z<d2„Z=d3„Z>dd4„Z?dd5„Z@d-d6d7„ZAed8„ƒZBd9eCfd:„ƒYZDedd-d;„ƒZEd<„ZFd=„ZGd>„ZHd?„ZIed@„ƒZJedA„ƒZKedB„ƒZLedC„ƒZMedD„ƒZNedE„ƒZOdF„ZPi3eJdG6e#dH6e$dI6e%dJ6e dK6e dL6e dM6e(dN6e)dO6e-dP6e-dQ6e.dR6eQdS6e+dT6e,dU6eQdV6eIdW6e/dX6e6dY6e)dO6e(dN6e0dZ6e1d[6eKd\6e2d]6eMd^6eOd_6e3d`6e4da6e7db6e8dc6e9dd6e:de6e;df6edg6eFdh6e5di6e<dj6e=dk6e>dl6eLdm6eNdn6e?do6e@dp6eEdq6eRdr6eAds6eBdt6eGdu6e'dv6e!dw6ZSdS(xs¡ jinja2.filters ~~~~~~~~~~~~~~ Bundled jinja filters. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. iÿÿÿÿN(tchoice(t itemgetter(tgroupby(tMarkuptescapetpformatturlizet soft_unicodetunicode_urlencode(t Undefined(tFilterArgumentError(tnexttimapt string_typest text_typet iteritemss\w+(?u)cCs t|_|S(sxDecorator for marking context dependent filters. The current :class:`Context` will be passed as first argument. (tTruet contextfilter(tf((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyRs cCs t|_|S(sÙDecorator for marking eval-context dependent filters. An eval context object is passed as first argument. For more information about the eval context, see :ref:`eval-context`. .. versionadded:: 2.4 (Rtevalcontextfilter(R((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyR#s cCs t|_|S(s‰Decorator for marking evironment dependent filters. The current :class:`Environment` is passed to the filter as first argument. (Rtenvironmentfilter(R((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyR.s cs^tˆtƒ s)dˆkr9ˆjƒ r9‡‡fd†Sˆjdƒ‰‡‡fd†}|S(sæReturns a callable that looks up the given attribute from a passed object with the rules of the environment. Dots are allowed to access attributes of attributes. Integer parts in paths are looked up as integers. t.csˆj|ˆƒS(N(tgetitem(tx(t attributet environment(s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt>scsBx;ˆD]3}|jƒr(t|ƒ}nˆj||ƒ}qW|S(N(tisdigittintR(titemtpart(RR(s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt attrgetter@s   (t isinstanceR Rtsplit(RRR((RRs2/usr/lib/python2.7/site-packages/jinja2/filters.pytmake_attrgetter6s cCs.t|dƒr|jƒ}ntt|ƒƒS(sCEnforce HTML escaping. This will probably double escape variables.t__html__(thasattrR#RR(tvalue((s2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_forceescapeIscCs‡d}t|tƒr$t|ƒ}n6t|tƒsZyt|ƒ}WqZtk rVqZXn|dkrpt|ƒSdjd„|DƒƒS(sªEscape strings for use in URLs (uses UTF-8 encoding). It accepts both dictionaries and regular strings as well as pairwise iterables. .. versionadded:: 2.7 u&css/|]%\}}t|ƒdt|ƒVqdS(t=N(R(t.0tktv((s2/usr/lib/python2.7/site-packages/jinja2/filters.pys `sN( tNoneR tdictRR titert TypeErrorRtjoin(R%titemiter((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_urlencodePs    cCs«|dkrd}n|jsCt|ƒjt|ƒt|ƒ|ƒSt|dƒsqt|dƒr€t|dƒ r€t|ƒ}n t|ƒ}|jt|ƒt|ƒ|ƒS(süReturn a copy of the value with all occurrences of a substring replaced with a new one. The first argument is the substring that should be replaced, the second is the replacement string. If the optional third argument ``count`` is given, only the first ``count`` occurrences are replaced: .. sourcecode:: jinja {{ "Hello World"|replace("Hello", "Goodbye") }} -> Goodbye World {{ "aaaaargh"|replace("a", "d'oh, ", 2) }} -> d'oh, d'oh, aaargh iÿÿÿÿR#N(R+t autoescapeRtreplaceR$RR(teval_ctxtstoldtnewtcount((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_replaceds   % cCst|ƒjƒS(sConvert a value to uppercase.(Rtupper(R5((s2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_upper€scCst|ƒjƒS(sConvert a value to lowercase.(Rtlower(R5((s2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_lower…scCsTdjd„t|ƒDƒƒ}|r8|r8d|}n|jrPt|ƒ}n|S(scCreate an SGML/XML attribute string based on the items in a dict. All values that are neither `none` nor `undefined` are automatically escaped: .. sourcecode:: html+jinja ... Results in something like this: .. sourcecode:: html
    ...
As you can see it automatically prepends a space in front of the item if the filter returned something unless the second parameter is false. u cssM|]C\}}|dk rt|tƒ rdt|ƒt|ƒfVqdS(u%s="%s"N(R+R R R(R(tkeyR%((s2/usr/lib/python2.7/site-packages/jinja2/filters.pys £s (R/RR2R(t _eval_ctxtdt autospacetrv((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_xmlattrŠs   cCst|ƒjƒS(sYCapitalize a value. The first character will be uppercase, all others lowercase. (Rt capitalize(R5((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_capitalize®scCsgg}xQtjdƒj|ƒD]7}|s1qn|j|djƒ|djƒƒqWdj|ƒS(sˆReturn a titlecased version of the value. I.e. words will start with uppercase letters, all remaining characters are lowercase. s ([-\s]+)(?u)iit(tretcompileR!tappendR:R<R/(R5RBR((s2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_titleµs )R>cs^|dkrd‰n!|dkr*d‰n tdƒ‚‡‡fd†}t|jƒd|ƒS(sSort a dict and yield (key, value) pairs. Because python dicts are unsorted you may want to use this function to order them by either key or value: .. sourcecode:: jinja {% for item in mydict|dictsort %} sort the dict by key, case insensitive {% for item in mydict|dictsort(true) %} sort the dict by key, case sensitive {% for item in mydict|dictsort(false, 'value') %} sort the dict by key, case insensitive, sorted normally and ordered by value. R>iR%is,You can only sort by either "key" or "value"cs3|ˆ}t|tƒr/ˆ r/|jƒ}n|S(N(R R R<(RR%(tcase_sensitivetpos(s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt sort_funcÙs (R tsortedtitems(R%RKtbyRM((RKRLs2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_dictsortÁs     csg|sd„}nd}|dk rQt||ƒ‰|p?d„‡fd†}nt|d|d|ƒS(sÚSort an iterable. Per default it sorts ascending, if you pass it true as first argument it will reverse the sorting. If the iterable is made of strings the third parameter can be used to control the case sensitiveness of the comparison which is disabled by default. .. sourcecode:: jinja {% for item in iterable|sort %} ... {% endfor %} It is also possible to sort by an attribute (for example to sort by the date of an object) by specifying the `attribute` parameter: .. sourcecode:: jinja {% for item in iterable|sort(attribute='date') %} ... {% endfor %} .. versionchanged:: 2.6 The `attribute` parameter was added. cSs"t|tƒr|jƒ}n|S(N(R R R<(R((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyRMÿscSs|S(N((R((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyRscs|ˆ|ƒƒS(N((Rt processor(tgetter(s2/usr/lib/python2.7/site-packages/jinja2/filters.pyRMsR>treverseN(R+R"RN(RR%RTRKRRM((RSs2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_sortâs  ucCs$t|tƒs|r | r |S|S(sIf the value is undefined it will return the passed default value, otherwise the value of the variable: .. sourcecode:: jinja {{ my_variable|default('my_variable is not defined') }} This will output the value of ``my_variable`` if the variable was defined, otherwise ``'my_variable is not defined'``. If you want to use default with variables that evaluate to false you have to set the second parameter to `true`: .. sourcecode:: jinja {{ ''|default('the string was empty', true) }} (R R (R%t default_valuetboolean((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_default scCsÿ|dk r*tt|j|ƒ|ƒ}n|jsOt|ƒjtt|ƒƒSt|dƒsãt|ƒ}t }xBt |ƒD]4\}}t|dƒr¡t }q}t|ƒ|| 1|2|3 {{ [1, 2, 3]|join }} -> 123 It is also possible to join certain attributes of an object: .. sourcecode:: jinja {{ users|join(', ', attribute='username') }} .. versionadded:: 2.6 The `attribute` parameter was added. R#N(R+R R"RR2RR/R$tlisttFalset enumerateRRR(R4R%R@Rt do_escapetidxR((s2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_join"s       iPcCst|ƒj|ƒS(s.Centers the value in a field of a given width.(Rtcenter(R%twidth((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_centerTscCs6ytt|ƒƒSWntk r1|jdƒSXdS(s$Return the first item of a sequence.s"No first item, sequence was empty.N(R R-t StopIterationt undefined(Rtseq((s2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_firstYs cCs<yttt|ƒƒƒSWntk r7|jdƒSXdS(s#Return the last item of a sequence.s!No last item, sequence was empty.N(R R-treversedRbRc(RRd((s2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_lastbs cCs0yt|ƒSWntk r+|jdƒSXdS(s'Return a random item from the sequence.s#No random item, sequence was empty.N(Rt IndexErrorRc(RRd((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_randomks cCs't|ƒ}|rdpd}|r*dp-d|r9dp<d|rHdpKd|rWd pZd |rfd pid |rud pxd|r„dp‡d|r“dp–dg}|dkr¬dS||krÀd|SxJt|ƒD]<\}}||d}||krÍd||||fSqÍWd||||fSdS(søFormat the value like a 'human-readable' file size (i.e. 13 kB, 4.1 MB, 102 Bytes, etc). Per default decimal prefixes are used (Mega, Giga, etc.), if the second parameter is set to `True` the binary prefixes are used (Mebi, Gibi). iiètKiBtkBtMiBtMBtGiBtGBtTiBtTBtPiBtPBtEiBtEBtZiBtZBtYiBtYBis1 Bytes%d Bytesis%.1f %sN(tfloatR[(R%tbinarytbytestbasetprefixestitprefixtunit((s2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_filesizeformatts&    cCst|d|ƒS(sÆPretty print a variable. Useful for debugging. With Jinja 1.2 onwards you can pass it a parameter. If this parameter is truthy the output will be more verbose (this requires `pretty`) tverbose(R(R%Rƒ((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_pprint’scCs.t|||ƒ}|jr*t|ƒ}n|S(sdConverts URLs in plain text into clickable links. If you pass the filter an additional integer it will shorten the urls to that number. Also a third argument exists that makes the urls "nofollow": .. sourcecode:: jinja {{ mytext|urlize(40, true) }} links are shortened to 40 chars and defined with rel="nofollow" (RR2R(R4R%ttrim_url_limittnofollowRB((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_urlize›s  icCs:d|}d|j|jƒƒ}|r6||}n|S(soReturn a copy of the passed string, each line indented by 4 spaces. The first line is not indented. If you want to change the number of spaces or indent the first line too you can pass additional parameters to the filter: .. sourcecode:: jinja {{ mytext|indent(2, true) }} indent by two spaces and indent the first line too. u u (R/t splitlines(R5R`t indentfirstt indentionRB((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_indent®s  iÿs...cCsŸt|ƒ|kr|S|r(|| |S|jdƒ}g}d}x?|D]7}|t|ƒd7}||krtPn|j|ƒqJW|j|ƒdj|ƒS(sSReturn a truncated copy of the string. The length is specified with the first parameter which defaults to ``255``. If the second parameter is ``true`` the filter will cut the text at length. Otherwise it will discard the last word. If the text was in fact truncated it will append an ellipsis sign (``"..."``). If you want a different ellipsis sign than ``"..."`` you can specify it using the third parameter. .. sourcecode:: jinja {{ "foo bar"|truncate(5) }} -> "foo ..." {{ "foo bar"|truncate(5, True) }} -> "foo b..." t iiu (tlenR!RIR/(R5tlengtht killwordstendtwordstresulttmtword((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_truncateÀs    iOc CsL|s|j}nddl}|j|j|d|dtdtd|ƒƒS(sñ Return a copy of the string passed to the filter wrapped after ``79`` characters. You can override this default using the first parameter. If you set the second parameter to `false` Jinja will not split words apart if they are longer than `width`. By default, the newlines will be the default newlines for the environment, but this can be changed using the wrapstring keyword argument. .. versionadded:: 2.7 Added support for the `wrapstring` parameter. iÿÿÿÿNR`t expand_tabstreplace_whitespacetbreak_long_words(tnewline_sequencettextwrapR/twrapRZ(RR5R`R˜t wrapstringRš((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_wordwrapßs   cCsttj|ƒƒS(sCount the words in that string.(R�t_word_retfindall(R5((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_wordcountõsicCs[yt|ƒSWnFttfk rVytt|ƒƒSWqWttfk rR|SXnXdS(s�Convert the value into an integer. If the conversion doesn't work it will return ``0``. You can override this default using the first parameter. N(RR.t ValueErrorRz(R%tdefault((s2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_intúsgcCs-yt|ƒSWnttfk r(|SXdS(s¬Convert the value into a floating point number. If the conversion doesn't work it will return ``0.0``. You can override this default using the first parameter. N(RzR.R¡(R%R¢((s2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_float scOs/|r|rtdƒ‚nt|ƒ|p-|S(s  Apply python string formatting on an object: .. sourcecode:: jinja {{ "%s - %s"|format("Hello?", "Foo!") }} -> Hello? - Foo! s>can't handle positional and keyword arguments at the same time(R R(R%targstkwargs((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_formats cCst|ƒjƒS(s&Strip leading and trailing whitespace.(Rtstrip(R%((s2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_trim#scCs4t|dƒr|jƒ}ntt|ƒƒjƒS(sFStrip SGML/XML tags and replace adjacent whitespace by one space. R#(R$R#RRt striptags(R%((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_striptags(sc csÀt|ƒ}t|ƒ}||}||}d}x‡t|ƒD]y}|||} ||krl|d7}n||d|} || | !} |dk r³||kr³| j|ƒn| Vq?WdS(sESlice an iterator and return a list of lists containing those items. Useful if you want to create a div containing three ul tags that represent columns: .. sourcecode:: html+jinja
{%- for column in items|slice(3) %}
    {%- for item in column %}
  • {{ item }}
  • {%- endfor %}
{%- endfor %}
If you pass it a second argument it's used to fill missing values on the last iteration. iiN(RYR�trangeR+RI( R%tslicest fill_withRdRŽtitems_per_slicetslices_with_extratoffsett slice_numbertstartR�ttmp((s2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_slice0s       ccs˜g}g}x;|D]3}t|ƒ|kr9|Vg}n|j|ƒqW|r”|dk rŒt|ƒ|krŒ||g|t|ƒ7}n|VndS(s  A filter that batches items. It works pretty much like `slice` just the other way round. It returns a list of lists with the given number of items. If you provide a second parameter this is used to fill up missing items. See this example: .. sourcecode:: html+jinja {%- for row in items|batch(3, ' ') %} {%- for column in row %} {%- endfor %} {%- endfor %}
{{ column }}
N(R�RIR+(R%t linecountR®R’R´R((s2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_batchTs  tcommoncCs]|dkrtdƒ‚n|dkr4t||ƒStt|ƒ}||d|ƒd|S(sŒRound the number to a given precision. The first parameter specifies the precision (default is ``0``), the second the rounding method: - ``'common'`` rounds either up or down - ``'ceil'`` always rounds up - ``'floor'`` always rounds down If you don't specify a method ``'common'`` is used. .. sourcecode:: jinja {{ 42.55|round }} -> 43.0 {{ 42.55|round(1, 'floor') }} -> 42.5 Note that even if rounded to 0 precision, a float is returned. If you need a real integer, pipe it through `int`: .. sourcecode:: jinja {{ 42.55|round|int }} -> 43 R¸tceiltfloors$method must be common, ceil or floori (R¸R¹Rº(R troundtgetattrtmath(R%t precisiontmethodtfunc((s2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_roundts    cCs7t||ƒ}ttttt|d|ƒ|ƒƒƒS(sŒGroup a sequence of objects by a common attribute. If you for example have a list of dicts or objects that represent persons with `gender`, `first_name` and `last_name` attributes and you want to group all users by genders you can do something like the following snippet: .. sourcecode:: html+jinja
    {% for group in persons|groupby('gender') %}
  • {{ group.grouper }}
      {% for person in group.list %}
    • {{ person.first_name }} {{ person.last_name }}
    • {% endfor %}
  • {% endfor %}
Additionally it's possible to use tuple unpacking for the grouper and list: .. sourcecode:: html+jinja
    {% for grouper, list in persons|groupby('gender') %} ... {% endfor %}
As you can see the item we're grouping by is stored in the `grouper` attribute and the `list` contains all the objects that have this grouper in common. .. versionchanged:: 2.6 It's now possible to use dotted notation to group by the child attribute of another attribute. R>(R"RNtmapt _GroupTupleR(RR%Rtexpr((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_groupby–s'RÃcBs;eZdZeedƒƒZeedƒƒZd„ZRS(iicCs(|\}}tj||t|ƒfƒS(N(ttuplet__new__RY(tclstxxx_todo_changemeR>R%((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyRÇÆs ((t__name__t __module__t __slots__tpropertyRtgrouperRYRÇ(((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyRÃÁscCs4|dk r'tt||ƒ|ƒ}nt||ƒS(sÒReturns the sum of a sequence of numbers plus the value of parameter 'start' (which defaults to 0). When the sequence is empty it returns start. It is also possible to sum up only certain attributes: .. sourcecode:: jinja Total: {{ items|sum(attribute='price') }} .. versionchanged:: 2.6 The `attribute` parameter was added to allow suming up over attributes. Also the `start` parameter was moved on to the right. N(R+R R"tsum(RtiterableRR³((s2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_sumËs cCs t|ƒS(skConvert the value into a list. If it was a string the returned list will be a list of characters. (RY(R%((s2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_listàscCs t|ƒS(s…Mark the value as safe which means that in an environment with automatic escaping enabled this variable will not be escaped. (R(R%((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_mark_safeçscCs t|ƒS(sHMark a value as unsafe. This is the reverse operation for :func:`safe`.(R(R%((s2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_mark_unsafeîscCs„t|tƒr |ddd…Syt|ƒSWnOtk ryt|ƒ}|jƒ|SWq€tk r{tdƒ‚q€XnXdS(s[Reverse the object or return an iterator the iterates over it the other way round. Niÿÿÿÿsargument must be iterable(R R RfR.RYRTR (R%RB((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_reverseós    cCs”yt|ƒ}Wntk r#n[Xyt||ƒ}Wntk rJn4X|jrz|j|||ƒ rz|j||ƒS|S|jd|d|ƒS(sóGet an attribute of an object. ``foo|attr("bar")`` works like ``foo["bar"]`` just that always an attribute is returned and items are not looked up. See :ref:`Notes on subscriptions ` for more details. tobjtname(tstrt UnicodeErrorR¼tAttributeErrort sandboxedtis_safe_attributetunsafe_undefinedRc(RRÖR×R%((s2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_attrs   c/sôˆd‰ˆd}tˆƒdkr{dˆkr{ˆjdƒ}ˆrftdttˆƒƒƒ‚ntˆj|ƒ}nPyˆd‰ˆd‰Wntk r²tdƒ‚nX‡‡‡‡fd†}|rðx|D]}||ƒVqØWnd S( sïApplies a filter on a sequence of objects or looks up an attribute. This is useful when dealing with lists of objects but you are really only interested in a certain value of it. The basic usage is mapping on an attribute. Imagine you have a list of users but you are only interested in a list of usernames: .. sourcecode:: jinja Users on this page: {{ users|map(attribute='username')|join(', ') }} Alternatively you can let it invoke a filter by passing the name of the filter and the arguments afterwards. A good example would be applying a text conversion filter on a sequence: .. sourcecode:: jinja Users on this page: {{ titles|map('lower')|join(', ') }} .. versionadded:: 2.7 iiiRsUnexpected keyword argument %rismap requires a filter argumentcsˆjjˆ|ˆˆdˆƒS(Ntcontext(Rt call_filter(R(R¥RßR¦R×(s2/usr/lib/python2.7/site-packages/jinja2/filters.pyRCs N(R�tpopR R R-R"Rt LookupError(R¥R¦RdRRÀR((R¥RßR¦R×s2/usr/lib/python2.7/site-packages/jinja2/filters.pytdo_maps"     cOst||d„tƒS(sFilters a sequence of objects by appying a test to either the object or the attribute and only selecting the ones with the test succeeding. Example usage: .. sourcecode:: jinja {{ numbers|select("odd") }} .. versionadded:: 2.7 cSs|S(N((R((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyRXs(t_select_or_rejectRZ(R¥R¦((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_selectKs cOst||d„tƒS(sþFilters a sequence of objects by appying a test to either the object or the attribute and rejecting the ones with the test succeeding. Example usage: .. sourcecode:: jinja {{ numbers|reject("odd") }} .. versionadded:: 2.7 cSs| S(N((R((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyRhs(RäRZ(R¥R¦((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_reject[s cOst||d„tƒS(s;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. Example usage: .. sourcecode:: jinja {{ users|selectattr("is_active") }} {{ users|selectattr("email", "none") }} .. versionadded:: 2.7 cSs|S(N((R((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyRys(RäR(R¥R¦((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_selectattrkscOst||d„tƒS(s"Filters a sequence of objects by appying a test to either the object or the attribute and rejecting the ones with the test succeeding. .. sourcecode:: jinja {{ users|rejectattr("is_active") }} {{ users|rejectattr("email", "none") }} .. versionadded:: 2.7 cSs| S(N((R((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyRˆs(RäR(R¥R¦((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt do_rejectattr|s c #sˆd‰ˆd}|rcyˆd}Wntk rGtdƒ‚nXtˆj|ƒ}d}nd}d„}y8ˆd|‰ˆd|‰‡‡‡‡fd†}Wntk rÃt}nX|rþx1|D]&} |||| ƒƒƒrÑ| VqÑqÑWndS(Niiis$Missing parameter for attribute namecSs|S(N((R((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyR—sicsˆjjˆ|ˆˆƒS(N(Rt call_test(R(R¥RßR¦R×(s2/usr/lib/python2.7/site-packages/jinja2/filters.pyRœs (RâR R"Rtbool( R¥R¦tmodfunct lookup_attrRdtattrt transfunctoffRÀR((R¥RßR¦R×s2/usr/lib/python2.7/site-packages/jinja2/filters.pyRä‹s*        RíR3R:R<Rtet forceescapeRDttitleR¢R@R/R8tdictsorttsortRŽRTR_tindenttfirsttlastRÂtrandomtrejectt rejectattrtfilesizeformattpprintttruncatetwordwrapt wordcountRRztstringRYRtformatttrimRªtselectt selectattrtslicetbatchRÏtabsR»Rtsafetxmlattrt urlencode(Tt__doc__RGR½RøRtoperatorRt itertoolsRt jinja2.utilsRRRRRRtjinja2.runtimeR tjinja2.exceptionsR tjinja2._compatR R R RRRHRžRRRR"R&R1R+R9R;R=RRCRERJRZRQRURXR^RaReRgRiR‚R„R‡R‹R•R�R R£R¤R§R©R«RµR·RÁRÅRÆRÃRÑRÒRÓRÔRÕRÞRãRåRæRçRèRäR�RtFILTERS(((s2/usr/lib/python2.7/site-packages/jinja2/filters.pyt sð  .(       #  !(1           $ "+     .