/usr/lib64/python2.6/site-packages/jinja2
NameSizeModeActions
bccache.py112940644editdlrm
bccache.pyc134770644editdlrm
bccache.pyo134770644editdlrm
compiler.py559230644editdlrm
compiler.pyc509150644editdlrm
compiler.pyo508450644editdlrm
constants.py62290644editdlrm
constants.pyc76970644editdlrm
constants.pyo76970644editdlrm
debug.py99270644editdlrm
debug.pyc101660644editdlrm
debug.pyo100940644editdlrm
defaults.py10500644editdlrm
defaults.pyc16140644editdlrm
defaults.pyo16140644editdlrm
environment.py346510644editdlrm
environment.pyc345220644editdlrm
environment.pyo341030644editdlrm
exceptions.py30730644editdlrm
exceptions.pyc47210644editdlrm
exceptions.pyo47210644editdlrm
ext.py181070644editdlrm
ext.pyc176810644editdlrm
ext.pyo176140644editdlrm
filters.py218060644editdlrm
filters.pyc247740644editdlrm
filters.pyo247740644editdlrm
lexer.py246640644editdlrm
lexer.pyc205660644editdlrm
lexer.pyo203970644editdlrm
loaders.py115070644editdlrm
loaders.pyc132180644editdlrm
loaders.pyo132180644editdlrm
meta.py28460644editdlrm
meta.pyc36670644editdlrm
meta.pyo36670644editdlrm
nodes.py234640644editdlrm
nodes.pyc381880644editdlrm
nodes.pyo376930644editdlrm
optimizer.py23020644editdlrm
optimizer.pyc28730644editdlrm
optimizer.pyo28730644editdlrm
parser.py306760644editdlrm
parser.pyc288520644editdlrm
parser.pyo288520644editdlrm
runtime.py176050644editdlrm
runtime.pyc214470644editdlrm
runtime.pyo214110644editdlrm
sandbox.py92600644editdlrm
sandbox.pyc97180644editdlrm
sandbox.pyo97180644editdlrm
tests.py32660644editdlrm
tests.pyc49220644editdlrm
tests.pyo49220644editdlrm
utils.py248940644editdlrm
utils.pyc315080644editdlrm
utils.pyo315080644editdlrm
visitor.py33160644editdlrm
visitor.pyc38500644editdlrm
visitor.pyo38500644editdlrm
_ipysupport.py9490644editdlrm
_ipysupport.pyc17760644editdlrm
_ipysupport.pyo17760644editdlrm
_speedups.so82320755editdlrm
_stringdefs.py4042560644editdlrm
_stringdefs.pyc2085250644editdlrm
_stringdefs.pyo2085250644editdlrm
__init__.py21950644editdlrm
__init__.pyc23960644editdlrm
__init__.pyo23960644editdlrm
Edit: /usr/lib64/python2.6/site-packages/jinja2/compiler.pyo (50845B)
Ñò ‰x­Jc @sÂdZddklZddklZddklZddklZl Z ddk l Z ddk l Z lZlZlZlZhdd 6d d 6d d 6dd6dd6dd6dd6dd6Zy ddUWnej o eZnXeZdd„Zd„Zd„Zdefd„ƒYZdefd„ƒYZd efd!„ƒYZd"efd#„ƒYZ d$efd%„ƒYZ!d&efd'„ƒYZ"d(e#fd)„ƒYZ$d*efd+„ƒYZ%dS(,s jinja2.compiler ~~~~~~~~~~~~~~~ Compiles nodes into python code. :copyright: (c) 2009 by the Jinja Team. :license: BSD. iÿÿÿÿ(tStringIO(tchain(tnodes(t NodeVisitortNodeTransformer(tTemplateAssertionError(tMarkuptconcattescapetis_python_keywordtnexts==teqs!=tnet>tgts>=tgteqt|iƒD]0\}}t|ƒptSt|ƒptSqºWtStS(s)Does the node have a safe representation?N(RtNotImplementedtEllipsistTrueRtbooltinttlongtfloattcomplext basestringtxrangeRttupletlisttsett frozensett has_safe_reprtFalsetdictt iteritems(tvaluetitemtkey((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyR10s('      cCsKt|ƒ}y"x|D]}|i|ƒqWWntj onX|iS(s”Check if the names passed are accessed undeclared. The return value is a set of all the undeclared names from the sequence of names found. (tUndeclaredNameVisitorRt VisitorExitt undeclared(RtnamestvisitorR((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytfind_undeclaredFs t IdentifierscBs,eZdZd„Zd„Zed„ZRS(s+Tracks the status of identifiers in frames.cCs@tƒ|_tƒ|_tƒ|_tƒ|_tƒ|_dS(N(R/tdeclaredtouter_undeclaredR:tdeclared_locallytdeclared_parameter(tself((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt__init__Vs     cCs$|ii|ƒ|ii|ƒdS(s$Register a special name like `loop`.N(R:tdiscardR?tadd(RCR((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt add_specialiscCs>||ijp||ijotS|otS||ijS(s6Check if a name is declared in this or an outer scope.(RARBR%R2R?(RCRt local_only((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt is_declaredns  (t__name__t __module__t__doc__RDRGR2RI(((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyR>Ss  tFramecBsSeZdZdd„Zd„Zed„Zdd„Zd„Z d„Z eZ RS( s&Holds compile time information for us.cCs×tƒ|_t|_t|_|o|i|_d|_|o |ipd|_t ƒ|_ ||_ |dj o]|ii i |ii |iiB|i Bƒ|iii |ii|ii ƒ|i|_ndS(N(R>t identifiersR2ttoplevelt rootleveltrequire_output_checkRtbuffertblockR/tassigned_namestparentR?tupdateRBR@R:(RCRU((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRDzs            cCsZti|iƒ}|ii|iƒti|iiƒ|_|iii|iiƒ|S(s!Create a copy of the current one.(tobjectt__new__t __class__t__dict__RVRN(RCtrv((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytcopy¤s cCs4t|i|ƒ}x|D]}|i|ƒqWdS(s¬Walk the node and check for identifiers. If the scope is hard (eg: enforce on a python level) overrides from outer scopes are tracked differently. N(tFrameIdentifierVisitorRNR(RCRt hard_scopeR<R((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytinspect¬scs?|i‰ˆiˆiBˆiˆiB@t‡fd†|DƒƒBS(sFind all the shadowed names. extra is an iterable of variables that may be defined with `add_special` which may occour scoped. c3s-x&|]}ˆi|ƒo |VqqWdS(N(RI(t.0tx(ti(s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pys ¼s (RNR?R@RARBR/(RCtextra((Rbs5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt find_shadowedµs  cCs t|ƒS(sReturn an inner frame.(RM(RC((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytinner¾scCs|iƒ}t|_|S(sËReturn a soft frame. A soft frame may not be modified as standalone thing as it shares the resources with the frame it was created of, but it's not a rootlevel frame any longer. (R\R2RP(RCR[((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytsoftÂs  N(( RJRKRLRRDR\R2R_RdReRft__copy__(((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRMws *   R9cBseZdZRS(s?Exception used by the `UndeclaredNameVisitor` to signal a stop.(RJRKRL(((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyR9ÎstDependencyFinderVisitorcBs2eZdZd„Zd„Zd„Zd„ZRS(s.A visitor that collects filter and test calls.cCstƒ|_tƒ|_dS(N(R/tfiltersttests(RC((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRDÕs cCs$|i|ƒ|ii|iƒdS(N(t generic_visitRiRFR(RCR((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_FilterÙs cCs$|i|ƒ|ii|iƒdS(N(RkRjRFR(RCR((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_TestÝs cCsdS(sStop visiting at blocks.N((RCR((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_Blockás(RJRKRLRDRlRmRn(((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRhÒs    R8cBs)eZdZd„Zd„Zd„ZRS(s¡A visitor that checks if a name is accessed without being declared. This is different from the frame visitor as it will not stop at closure frames. cCst|ƒ|_tƒ|_dS(N(R/R;R:(RCR;((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRDëscCsq|idjoJ|i|ijo7|ii|iƒ|i|ijo tƒ‚qmn|ii|iƒdS(Ntload(tctxRR;R:RFR9RE(RCR((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_Nameïs #cCsdS(sStop visiting a blocks.N((RCR((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRn÷s(RJRKRLRDRqRn(((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyR8ås  R]cBsqeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z RS( sA visitor for `Frame.inspect`.cCs||_||_dS(N(RNR^(RCRNR^((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRDþs cCsŸ|idjo|iii|iƒnr|idjo|iii|iƒnH|idjo7|ii|i|iƒ o|iii|iƒndS(s2All assignments to names go through this function.tstoretparamRoN( RpRNRARFRRBRIR^R:(RCR((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRqscCs|iii|iƒdS(N(RNRARFR(RCR((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_Macro scCs'|i|ƒ|iii|iƒdS(N(RkRNRARFttarget(RCR((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_Imports cCsc|i|ƒxO|iD]D}t|tƒo|iii|dƒq|iii|ƒqWdS(Ni(RkR;RR-RNRARF(RCRR((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytvisit_FromImports   cCs$|i|iƒ|i|iƒdS(s'Visit assignments in the correct order.N(RRRu(RCR((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_AssignscCs|i|iƒdS(sqVisiting stops at for blocks. However the block sequence is visited as part of the outer scope. N(Rtiter(RCR((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_For scCs.x'|iddƒD]}|i|ƒqWdS(Ntexcludetbody(sbody(titer_child_nodesR(RCRtchild((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytvisit_CallBlock&scCs|i|iƒdS(N(Rtfilter(RCR((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytvisit_FilterBlock*scCsdS(sStop visiting at scopes.N((RCR((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_Scope-scCsdS(sStop visiting at blocks.N((RCR((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRn0s(RJRKRLRDRqRtRvRwRxRzRRR‚Rn(((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyR]ûs         t CompilerExitcBseZdZRS(s¼Raised if the compiler encountered a situation where it just doesn't make sense to further process the code. Any block that raises such an exception is not further processed. (RJRKRL(((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRƒ4sRcBseZdNd„Zd„Zd„Zd„Zd„Zd„Zdd„Z dNd„Z d „Z dNd „Z d „Z d „ZdNd d„ZdNd d„ZdNd„Zd„Zd„Zd„ZdOd„Zd„ZdNed„ZdNd„Zd„Zd„ZdNd„Zd„Zd„Zd„Zd„Z d„Z!d „Z"d!„Z#d"„Z$d#„Z%d$„Z&d%„Z'd&„Z(d'„Z)d(„Z*d)„Z+d*„Z,d+„Z-d,„Z.d-„Z/d.„Z0d/„Z1e0d0ƒZ2e0d1ƒZ3e0d2ƒZ4e0d3ƒZ5e0d4ƒZ6e0d5ƒZ7e0d6ƒZ8e0d7ƒZ9e0d8ƒZ:e1d0ƒZ;e1d1ƒZ<e1d9ƒZ=[0[1d:„Z>d;„Z?d<„Z@d=„ZAd>„ZBd?„ZCd@„ZDdA„ZEdB„ZFeGdC„ZHdD„ZIdE„ZJdF„ZKdG„ZLdH„ZMdI„ZNdJ„ZOdK„ZPdL„ZQdM„ZRRS(PcCsÀ|djo tƒ}n||_||_||_||_h|_h|_d|_t |_ d|_ h|_ h|_ g|_d|_d|_d|_t|_d|_d|_dS(Nii(RRRRR Rtimport_aliasestblockstextends_so_farR2thas_known_extendst code_linenoRjRit debug_infot_write_debug_infot _new_linest _last_lineR%t _first_writet_last_identifiert _indentation(RCRRR R((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRD=s(                   cCst|||i|iƒ‚dS(s%Fail with a `TemplateAssertionError`.N(RRR (RCtmsgtlineno((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytfailqscCs|id7_d|iS(sGet a new unique identifier.ist_%d(RŽ(RC((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyttemporary_identifieruscCs'|iƒ|_|id|iƒdS(s7Enable buffering for the frame from that point onwards.s%s = []N(R“RRt writeline(RCtframe((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRRzscCs=|iio|id|iƒn|id|iƒdS(s(Return the buffer contents of the frame.sreturn Markup(concat(%s))sreturn concat(%s)N(Rt autoescapeR”RR(RCR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytreturn_buffer_contentss cCs|id7_dS(sIndent by one.iN(R(RC((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytindent†sicCs|i|8_dS(sOutdent by step.N(R(RCtstep((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytoutdentŠscCs?|idjo|id|ƒn|id|i|ƒdS(s%Yield or write into the frame buffer.syield s %s.append(N(RRRR”(RCR•R((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt start_writeŽscCs%|idj o|idƒndS(s1End the writing process started by `start_write`.t)N(RRRtwrite(RCR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt end_write•scCs.|i||ƒ|i|ƒ|i|ƒdS(s4Simple shortcut for start_write + write + end_write.N(R›RRž(RCtsR•R((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt simple_writešs cCsm|idjo|idƒn|idƒy%x|D]}|i||ƒq8WWntj onXdS(sÒVisit a list of nodes as block in a frame. If the current frame is no buffer a dummy ``if 0: yield None`` is written automatically unless the force_generator parameter is set to False. sif 0: yield NonetpassN(RRRR”RRƒ(RCRR•R((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt blockvisit s cCs»|io|ipf|iid|iƒ|i|i7_|idj o)|ii|i|ifƒd|_qznt |_|iid|i ƒd|_n|ii|ƒdS(s&Write a string into the output stream.s s iN( R‹RRRRˆRŠRR‰tappendR2R(RCRa((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyR¯s     icCs!|i||ƒ|i|ƒdS(s!Combination of newline and write.N(tnewlineR(RCRaRRc((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyR”¾scCsYt|id|ƒ|_|dj o/|i|ijo|i|_|i|_ndS(s/Add one or more newlines before the next write.iN(tmaxR‹RR‘RŒRŠ(RCRRc((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyR¤Ãs  c Csxt}xCtd„|iDƒ|pdƒD]}t|ƒo t}Pq*q*Wx.|iD]#}|idƒ|i||ƒqVW|pzx.|iD]#}|idƒ|i||ƒqŽW|d j o8x5|i ƒD]#\}}|id||fƒqÏWqþn|i o$|idƒ|i|i |ƒn|o |i d j o|idƒn|idƒxE|iD]:}|id|i ƒ|i|i |ƒ|idƒqkW|d j o8x5|i ƒD]#\}}|id||fƒqÃWn|i d j o1|id ƒ|i|i |ƒ|id ƒqt|id ƒn5|i d j o$|id ƒ|i|i |ƒnd S(s,Writes a function call to the stream for the current node. A leading comma is added automatically. The extra keyword arguments may not include python keywords otherwise a syntax error could occour. The extra keyword arguments should be given as python dict. cssx|]}|iVqWdS(N(R7(R`Ra((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pys Ôs s, s, %s=%ss, *s , **dict({s, **{s%r: s%r: %s, s}, **Rœt}s, **N((R2RtkwargsR R%targsRRRR4tdyn_argst dyn_kwargsR7R5( RCRR•t extra_kwargstkwarg_workaroundtkwargtargR7R5((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt signatureÊsV $        #        cCs2x+|iiD]}|id||fƒq WdS(s9Pull all the references identifiers into the local scope.sl_%s = context.resolve(%r)N(RNR:R”(RCR•R((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt pull_localsÿs c Cs¤tƒ}x|D]}|i|ƒqWxvdD]n}t||ƒ}xVt||ƒD]E}||jo|iƒ||s N(RNR?R”tjoin(RCR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytunoptimize_scopes cCs¶h}xB|i|ƒD]1}|iƒ||<}|id||fƒqWtƒ}x6|iiD](}||jo|id|ƒqaqaW|o|idi|ƒdƒn|S(sThis function returns all the shadowed variables in a dict in the form name: alias and will write the required assignments into the current scope. No indentation takes place. This also predefines locally declared variables from the loop body because under some circumstances it may be the case that `extra_vars` is passed to `Frame.find_shadowed`. s %s = l_%sRµs = s = missing(RdR“R”R/RNRARFR¶(RCR•t extra_varstaliasesRtidentt to_declare((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt push_scopes    cCsŸx1|iƒD]#\}}|id||fƒq Wtƒ}x6|iiD](}||jo|id|ƒqJqJW|o|idi|ƒdƒndS(s0Restore all aliases and delete unused variables.s l_%s = %sRµs = s = missingN(R4R”R/RNRARFR¶(RCR¹R•Rtaliast to_delete((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt pop_scope1s    c CsÖ|d jo|iƒ}nt|ƒ}|iƒ}|i|dtƒ|ii|ii@|ii |ii B@}|o*|i ddi t |ƒƒ|iƒn|ii|ii|ii@8_|p|St|_t|_t|_g}|iD]}|d|iqú~|_} t|d ƒ} d| jo*t|_|iidƒ| idƒnd| jo*t|_|iidƒ| id ƒnd| jo*t|_|iidƒ| id ƒn|S( sMIn Jinja a few statements require the help of anonymous functions. Those are currently macros and call blocks and in the future also recursive loops. As there is currently technical limitation that doesn't allow reading and writing a variable in a scope where the initial value is coming from an outer scope, this function tries to fall back with a common error message. Additionally the frame passed is modified so that the argumetns are collected and callers are looked up. This will return the modified frame. R^sXIt's not possible to set and access variables derived from an outer scope! (affects: %s)s, RµtcallerR§tvarargstl_callertl_kwargst l_varargsN(RÀskwargsRÁ(RR}R.ReR_R%RNR:R?RARBR’R¶tsortedR‘R2taccesses_kwargstaccesses_varargstaccesses_callerR¨Rt argumentsR=RGR£( RCRR•tchildrent find_specialt func_frametoverriden_closure_varst_[1]RaR¨R:((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytfunction_scoping?sD      !     2      cCsº|i|||ƒ}t|_|i}d|iijo|dg}n|iddi|ƒ|ƒ|iƒ|i |ƒ|i |ƒ|i |i |ƒ|i |ƒ|iƒ|S(s/Dump the function def of a macro or call block.tloops l_loop=l_loopsdef macro(%s):s, (RÏR2RQRÉRNR?R”R¶R˜RRR°R¢R|R—Rš(RCRR•RÊR¨((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt macro_body„s       cCsÓdid„|iDƒƒ}t|ddƒ}t|iƒdjo|d7}n|id||fƒx.|iD]#}|i||ƒ|idƒqsW|idt|i ƒt|i ƒt|i ƒfƒdS( s<Dump the macro definition for the def created by macro_body.s, css"x|]}t|iƒVqWdS(N(treprR(R`Ra((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pys žs Rit,s%Macro(environment, macro, %r, (%s), (s), %r, %r, %r)N( R¶R¨R±RtlenRtdefaultsRR&RÆRÇRÈ(RCRR•t arg_tupleRR®((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt macro_defœs     cCs<d|i}|idj o|dt|iƒ7}n|S(s.Return a human readable position for the node.sline %ds in N(R‘RRRÒ(RCRR[((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytposition­s c Cs5ddkl}|idƒ|iddi|ƒƒ|itiƒdj }x[|iti ƒD]G}|i |i jo|i d|i |i ƒn||i |i s sdebug_info = %rt&cssx|]}d|VqWdS(s%s=%sN((R`Ra((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pys s (sself(sselfssuper(&tjinja2.runtimeRÙR”R¶tfindRtExtendsRtfind_alltBlockRR…R’R‘t ImportedNamet importnameR„R“trsplitRMR_R|R%RORPR‡RQR˜R=RNRGR°R´R¢RšR4RSR‰(RCRR•texportedt have_extendsRStimport_timpR½tmoduletobjRt block_frameR:((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytvisit_Template¶sŠ                       cCsºd}|ioH|iodS|idjo%|idƒ|iƒ|d7}qXn|io d}nd}|id|i|f|ƒ|iƒ|id|ƒ|i|ƒdS( s.Call a block and register it for the template.iNisif parent_template is None:scontext.derived(locals())tcontexts'for event in context.blocks[%r][0](%s):tevent( ROR‡R†R”R˜tscopedRR Rš(RCRR•tlevelRí((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRns         cCs|ip|id|iƒn|idjo[|ip|idƒ|iƒn|iddƒ|iƒ|io tƒ‚qŒn|id|ƒ|i |i |ƒ|i d|i ƒ|idƒ|iƒ|id ƒ|iƒ|i o t|_n|id 7_d S( sCalls the extender.s,cannot use extend from a non top-level scopeisif parent_template is not None:sraise TemplateRuntimeError(%r)sextended multiple timess+parent_template = environment.get_template(s, %r)s=for name, parent_block in parent_template.blocks.iteritems():s8context.blocks.setdefault(name, []).append(parent_block)iN(ROR’R‘R†R‡R”R˜RšRƒRttemplateRRRPR%(RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_Extends's,             cCs<|io|i|ƒn|io|idƒ|iƒn|id|ƒ|i|i|ƒ|id|iƒ|ioS|i ƒ|idƒ|iƒ|idƒ|i ƒ|idƒ|iƒn|io|idƒn|idƒ|iƒ|i d |ƒ|i ƒ|io|i ƒnd S( sHandles includes.stry:s$template = environment.get_template(s, %r)sexcept TemplateNotFound:R¡selse:s]for event in template.root_render_func(template.new_context(context.parent, True, locals())):s*for event in template.module._body_stream:RîN( t with_contextR·tignore_missingR”R˜RRñRRRšR (RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_IncludeUs0               cCsý|io|i|ƒn|id|i|ƒ|io|id|iƒn|idƒ|i|i|ƒ|id|iƒ|io|idƒn|idƒ|io,|ii dƒ o|id|iƒn|i i |iƒd S( sVisit regular imports.sl_%s = scontext.vars[%r] = senvironment.get_template(s, %r).s+make_module(context.parent, True, locals())Rét_s!context.exported_vars.discard(%r)N( RóR·R”RuRORRRñRt startswithRTRF(RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRvvs     cCs/|i|ƒ|idƒ|i|i|ƒ|id|iƒ|io|idƒn|idƒg}g}xò|iD]ç}t|tƒo|\}}n|}|i d||fƒ|i d|ƒ|i ƒ|i d|d|i |ƒt |ƒf|fƒ|i ƒ|io2|i|ƒ|id ƒp|i|ƒqVn|ii|ƒqW|o`t|ƒd jo%|d }|i d ||fƒqÑ|i d did„|Dƒƒƒn|oSt|ƒd jo|i d|d ƒq+|i dditt |ƒƒƒndS(sVisit named imports.s-included_template = environment.get_template(s, %r).s!make_module(context.parent, True)Rés.l_%s = getattr(included_template, %r, missing)sif l_%s is missing:sGl_%s = environment.undefined(%r %% included_template.__name__, name=%r)sGthe template %%r (imported on %s) does not export the requested name %sRöiiscontext.vars[%r] = l_%sscontext.vars.update({%s})s, css#x|]}d||fVqWdS(s%r: l_%sN((R`R((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pys ³s s!context.exported_vars.discard(%r)s-context.exported_vars.difference_update((%s))N(R¤RRRñRRóR;RR-R”R˜RØRÒRšROR£R÷RTRFRÔR¶tmap(RCRR•t var_namestdiscarded_namesRR½((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRwˆsR                 c CsÉ|idd!ƒ}|io|i|||dtƒ}n|iƒ}|i|ƒ|ipdt|idd"ƒd#ƒj}|ip|i|d$ƒ}n.|id|ƒ|i ƒ|i |ƒh}|o|i i dƒnxQ|i tiƒD]=}|idjo'|idjo|id |iƒqúqúW|i|ƒ|io!|iƒ}|id |ƒnd|joDdt|idd%ƒd&ƒjo"|id d|i|ƒƒn|id|ƒ|i|i|ƒ|i|odpdƒ|oÈ|idj o¸|idƒ|i|i|ƒ|idƒ|i|i|ƒ|idƒ|io|idƒn|i|i|ƒ|idƒ|iƒ} |i|i| ƒ|idƒn/|io|idƒn|i|i|ƒ|io|idƒn|i|odpdƒ| oo|idj o_|i ƒ|idƒ|i|i|ƒ|idƒ|i ƒ|idƒ|idƒn|i ƒ|i |i!|ƒ|io|id|ƒn|iƒ|io<|id|ƒ|i ƒ|i |i|ƒ|iƒn|ip|i"||ƒn|ioe|i#|ƒ|iƒ|i$||ƒ|idƒ|i|i|ƒ|id ƒ|i%|ƒndS('NR{RyRËRÐtonlyR|s$def loop(reciter, loop_render_func):Rrs8Can't assign to special loop variable in for-loop targets%s = 1telse_ttests/l_loop = environment.undefined(%r, name='loop')sÜ'loop' is undefined. the filter section of a loop as well as the else block doesn't have access to the special 'loop' variable of the current loop. Because there is no parent loop it's undefined. Happened in loop on %ssfor s, l_loop in LoopContext(s in t(s for treciters if (s))s, recurse=loop_render_func):s):t:sif not tcontinueis%s = 0sif %s:sloop(s, loop)(siter(sbody(sloop(sloop(selse_stest(sloop(&R}t recursiveRÏR2ReR_R=R¼R”R˜RRRNRGRàRtNameRpRR’R‘R°RüR“RØRRuRRýRRyR\RšR¢R|R¿R—R›Rž( RCRR•RÊt loop_framet extended_loopR¹Rtiteration_indicatort test_frame((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRz½s¢                                       cCs©|iƒ}|id|ƒ|i|i|ƒ|idƒ|iƒ|i|i|ƒ|iƒ|i o8|idƒ|iƒ|i|i |ƒ|iƒndS(Nsif Rselse:( RfR”RRýRR˜R¢R|RšRü(RCRR•tif_frame((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytvisit_If:s       cCs¤|i||ƒ}|iƒ|ioC|iidƒp|id|iƒn|id|iƒn|id|iƒ|i||ƒ|ii |iƒdS(NRöscontext.exported_vars.add(%r)scontext.vars[%r] = sl_%s = ( RÑR¤RORR÷RR”R×RTRF(RCRR•t macro_frame((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRtHs  cCs~|iddƒ}|i|||ƒ}|idƒ|i||ƒ|i||ƒ|i|i|dtƒ|i|ƒdS(NR{tcalls caller = tforward_caller(scall( R}RÑR”R×R›t visit_CallR R%Rž(RCRR•RÊt call_frame((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRSs cCsŸ|iƒ}|i|iƒƒ|i|ƒ}|i|ƒ|i|ƒ|i|i|ƒ|i||ƒ|i |i |ƒ|i |ƒ|i ||ƒdS(N( ReR_R}R¼R°RRR¢R|R›RlR€RžR¿(RCRR•t filter_frameR¹((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyR\s    cCs$|i|ƒ|i|i|ƒdS(N(R¤RR(RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytvisit_ExprStmths c sòˆio|iodSˆiio‡fd†}nt}ˆi|ƒt}|io!ˆidƒˆiƒt }ng}xñ|i D]æ}y|i ƒ}Wn&t i j o|i |ƒqnXyMˆiio0t|dƒo|iƒ}q t|ƒ}n||ƒ}Wn|i |ƒqnX|o)t|dtƒo|di |ƒq|i |gƒqWt|ƒdjp|idj oå|idj oMt|ƒdjoˆid|iƒnˆid|iƒˆiƒnx<|D]4}t|tƒoLtt|ƒƒ} |idjoˆid | ƒq2ˆi| d ƒqþ|idjoˆid |ƒnˆi|ƒd} ˆiioˆid ƒnˆid ƒˆiidj oˆid ƒ| d7} nˆi||ƒˆid| ƒ|idj oˆid ƒqþqþW|idj o5ˆiƒˆit|ƒdjodpdƒqÙn[g} g} x[|D]S}t|tƒo#| i t|ƒiddƒƒq’| i dƒ| i |ƒq’Wˆid ƒˆitt| ƒƒdƒd} ˆiƒxœ| D]”}ˆi|ƒd} ˆiioˆid ƒ| d7} nˆiidj oˆid ƒ| d7} nˆi||ƒˆid| d ƒq*Wˆiƒˆidƒ|oˆiƒndS(Ncstˆii|ƒƒS((tunicodeRtfinalize(Ra(RC(s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytsssif parent_template is None:t__html__iÿÿÿÿiis %s.append(s %s.extend((syield s, sescape(s to_string(senvironment.finalize(Rœs))t%s%%s%ss % (i(R‡RQRRRR¤R2R”R˜R%Rtas_constt ImpossibleR£R–thasattrRRRR.RÔRRRRÒRRRRštreplace(RCRR•Rt outdent_laterR|R~tconstR6tvaltclosetformatRÉtidxtargument((RCs5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_Outputls²          #     /#         c Cs¿|i|ƒ|io|iƒ}tƒ|_n|}|i|i|ƒ|idƒ|i|i|ƒ|ioEg}|iD]!}|i dƒp ||q„q„~}t |iƒdjo0t t |iƒƒ}|i d||fƒnj|i dƒxLt|iƒD];\}}|o|idƒn|id||fƒqW|idƒ|oSt |ƒdjo|i d |d ƒq·|i d ditt|ƒƒƒq»ndS( Ns = Röiscontext.vars[%r] = l_%sscontext.vars.update({s, s%r: l_%ss})scontext.exported_vars.add(%r)is"context.exported_vars.update((%s))(R¤ROR\R/ttoplevel_assignmentsRRuRRR÷RÔR RyR”t enumerateR¶RøRÒ( RCRR•tassignment_frameRÎRat public_namesRR((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRxßs6     $     cCs\|idjo!|io|ii|iƒn|id|iƒ|ii|iƒdS(NRrRµ(RpROR"RFRRRT(RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRqscCsG|i}t|tƒo|it|ƒƒn|it|ƒƒdS(N(R5RR)RtstrRÒ(RCRR•R((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_Const s cCs|it|iƒƒƒdS(N(RRÒR(RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytvisit_TemplateDatascCs€|idƒd}xEt|iƒD]4\}}|o|idƒn|i||ƒq#W|i|djodpdƒdS(NRþiÿÿÿÿs, is,)Rœ(RR#titemsR(RCRR•RR6((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_Tuples  cCsf|idƒxEt|iƒD]4\}}|o|idƒn|i||ƒqW|idƒdS(Nt[s, t](RR#R)R(RCRR•RR6((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_Lists  cCs‰|idƒxht|iƒD]W\}}|o|idƒn|i|i|ƒ|idƒ|i|i|ƒqW|idƒdS(Nt{s, s: R¦(RR#R)RR7R5(RCRR•RR6((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_Dict's   cs‡fd†}|S(NcsU|idƒ|i|i|ƒ|idˆƒ|i|i|ƒ|idƒdS(NRþs %s Rœ(RRtlefttright(RCRR•(toperator(s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyR<2s  ((R2R<((R2s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytbinop1scs‡fd†}|S(Ncs5|idˆƒ|i|i|ƒ|idƒdS(NRþRœ(RRR(RCRR•(R2(s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyR<;s((R2R<((R2s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytuaop:st+t-t*t/s//s**Rtandtorsnot cCsg|id|iiodpdƒx.|iD]#}|i||ƒ|idƒq/W|idƒdS(Ns%s((t markup_joint unicode_joins, s))(RRR–RR(RCRR•R®((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_ConcatOs cCs;|i|i|ƒx!|iD]}|i||ƒqWdS(N(Rtexprtops(RCRR•top((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_CompareWs cCs/|idt|iƒ|i|i|ƒdS(Ns %s (Rt operatorsR@RR>(RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_Operand\scCs8|idƒ|i|i|ƒ|id|iƒdS(Nsenvironment.getattr(s, %r)(RRRtattr(RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_Getattr`s cCs«t|itiƒoD|i|i|ƒ|idƒ|i|i|ƒ|idƒnN|idƒ|i|i|ƒ|idƒ|i|i|ƒ|idƒdS(NR+R,senvironment.getitem(s, Rœ(RR®RtSliceRRR(RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_Getitemes   cCs“|idj o|i|i|ƒn|idƒ|idj o|i|i|ƒn|idj o$|idƒ|i|i|ƒndS(NR(tstartRRRtstopR™(RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_Slicess  cCs'|i|i|idƒ|iii|iƒ}|djo|id|i|iƒnt|dt ƒo|idƒn%t|dt ƒo|idƒn|i dj o|i |i |ƒn:|ii o|id|i ƒn|id|i ƒ|i||ƒ|id ƒdS( NRþsno filter named %rt contextfilters context, tenvironmentfilters environment, sMarkup(concat(%s))s concat(%s)Rœ(RRiRRtgetRR’R‘R±R2RRR–RRR¯(RCRR•tfunc((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRl}s  cCsƒ|i|i|idƒ|i|iijo|id|i|iƒn|i|i|ƒ|i||ƒ|idƒdS(NRþsno test named %rRœ( RRjRRR’R‘RRR¯(RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyRm’s cs懇‡fd†}tpeˆidƒˆiˆiˆƒˆidƒˆiˆiˆƒˆidƒ|ƒˆidƒnbˆidƒˆiˆiˆƒˆidƒˆiˆiˆƒˆidƒ|ƒˆid ƒdS( NcsFˆidj oˆiˆiˆƒSˆiddˆiˆƒƒdS(Nsenvironment.undefined(%r)sRthe inline if-expression on %s evaluated to false and no else section was defined.(texpr2RRRRØ((RRCR•(s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt write_expr2›s s((s) and (s,) or (s,))[0]Rþs if s else Rœ(t have_condexprRRRýtexpr1(RCRR•RP((RRCR•s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytvisit_CondExpršs       cCs}|iio|idƒn|idƒ|i|i|ƒ|ohdd6pd}|i|||ƒ|idƒdS(Nsenvironment.call(context, s context.call(RÀRœ(Rt sandboxedRRRRR¯(RCRR•R R«((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyR ³s  cCs+|i|idƒ|i|i|ƒdS(Nt=(RR7RR5(RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_Keyword½scCs1|idƒ|i|i|ƒ|idƒdS(NsMarkup(Rœ(RRR>(RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytvisit_MarkSafeÃs cCs|id|iƒdS(Ns environment.(RR(RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytvisit_EnvironmentAttributeÈscCs!|id|i|ifƒdS(Nsenvironment.extensions[%r].%s(Rt identifierR(RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytvisit_ExtensionAttributeËscCs|i|i|iƒdS(N(RR„Rã(RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytvisit_ImportedNameÎscCs|i|iƒdS(N(RR(RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytvisit_InternalNameÑscCs|idƒdS(NRí(R(RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytvisit_ContextReferenceÔscCs|id|ƒdS(NR(R”(RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pytvisit_Continue×scCs|id|ƒdS(Ntbreak(R”(RCRR•((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt visit_BreakÚscCsb|iƒ}|i|iƒƒ|i|ƒ}|i|ƒ|i|i|ƒ|i||ƒdS(N(ReR_R}R¼R°R¢R|R¿(RCRR•t scope_frameR¹((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyR‚Ýs   N((SRJRKRRDR’R“RRR—R˜RšR›RžR R¢RR”R¤R¯R°R´R·R¼R¿R%RÏRÑR×RØRìRnRòRõRvRwRzR RtRRRR!RxRqR'R(R*R-R/R3R4t visit_Addt visit_Subt visit_Mult visit_Divtvisit_FloorDivt visit_Powt visit_Modt visit_Andtvisit_Ort visit_Post visit_Negt visit_NotR=RARCRERGRJRlRmRSR2R RVRWRXRZR[R\R]R^R`R‚(((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyR;s  4            5    D   [  . !  5 }   s '                                  (&RLt cStringIORt itertoolsRtjinja2Rtjinja2.visitorRRtjinja2.exceptionsRt jinja2.utilsRRRR R RBt SyntaxErrorR2RQR%RR"R1R=RWR>RMt RuntimeErrorR9RhR8R]t ExceptionRƒR(((s5/usr/lib64/python2.6/site-packages/jinja2/compiler.pyt s>(     $W9