/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/runtime.pyc (21447B)
Ñò Lx­Jc@sdZddkZddklZlZddklZlZlZl Z l Z l Z l Z l Z lZlZddklZlZlZdddd d d d d ddddg Ze e fZeZd„Zd„Zddddd„Zdefd„ƒYZdefd„ƒYZy!ddkl Z e i!eƒWne"j onXdefd„ƒYZ#defd„ƒYZ$defd„ƒYZ%defd„ƒYZ&defd „ƒYZ'd!e'fd"„ƒYZ(d#e'fd$„ƒYZ)e'`*e(`*e)`*dS(%s} jinja2.runtime ~~~~~~~~~~~~~~ Runtime helpers. :copyright: (c) 2009 by the Jinja Team. :license: BSD. iÿÿÿÿN(tchaintimap( tMarkuptpartialt soft_unicodetescapetmissingtconcatt MethodTypet FunctionTypet internalcodetnext(tUndefinedErrortTemplateRuntimeErrortTemplateNotFoundt LoopContexttTemplateReferencetMacroRR RRRt markup_joint unicode_joint to_stringRcCsjg}tt|ƒ}xH|D]@}|i|ƒt|dƒotdƒit||ƒƒSqWt|ƒS(s@Concatenation that escapes if necessary and converts to unicode.t__html__u(RRtappendthasattrRtjoinRR(tseqtbuftiteratortarg((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR#s !cCsttt|ƒƒS(s4Simple args to unicode conversion and concatenation.(RRtunicode(R((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR.sc CsÀ|djo h}n|o |}nt|pd|}|oh|ot|ƒ}nxN|iƒD]<\}} |d djo| tj o| ||dPsi(R.R%R#t autoescapeRtBlockReference(R/tnameR%twrap((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyt __getitem__MscCsd|ii|iifS(Ns<%s %r>(t __class__t__name__R.R6(R/((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyt__repr__Ss (R:t __module__t__doc__R1R8R;(((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyRGs  R"cBsëeZdZdZd„Zd „Zdd „Zd „Zd „Z d „Z e d„ƒZ dd„Z d„ZedƒZedƒZedƒZeedƒo(edƒZedƒZedƒZn[d„Zd„Zd„ZRS(sïThe template context holds the variables of a template. It stores the values passed to the template and also the names the template exports. Creating instances is neither supported nor useful as it's created automatically at various stages of the template evaluation and should not be created by hand. The context is immutable. Modifications on :attr:`parent` **must not** happen and modifications on :attr:`vars` are allowed from generated template code only. Template filters and global functions marked as :func:`contextfunction`\s get the active context passed as first argument and are allowed to access the context read-only. The template context supports read only dict operations (`get`, `keys`, `values`, `items`, `iterkeys`, `itervalues`, `iteritems`, `__getitem__`, `__contains__`). Additionally there is a :meth:`resolve` method that doesn't fail with a `KeyError` but returns an :class:`Undefined` object for missing variables. R*R&R#t exported_varsR6R%t __weakref__cCsW||_h|_}||_tƒ|_||_td„|iƒDƒƒ|_dS(Ncss(x!|]\}}||gfVqWdS(N((t.0tktv((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pys zs ( R*R&R#tsetR>R6R R!R%(R/R#R*R6R%R&((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR1ps      cCsly,|i|}|i|ƒd}||Wn*tj o|iid|ddƒSXt||||ƒS(sRender a parent block.is#there is no parent block called %r.R6tsuper(R%tindext LookupErrorR#t undefinedR5(R/R6tcurrentR%RE((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyRD|s    cCs'y ||SWntj o|SXdS(sfReturns an item from the template context, if it doesn't exist `default` is returned. N(tKeyError(R/R+tdefault((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pytgetˆs cCsK||ijo |i|S||ijo |i|S|iid|ƒS(sŽLooks up a variable like `__getitem__` or `get` but returns an :class:`Undefined` object with the name of the name looked up. R6(R&R*R#RG(R/R+((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pytresolve‘s   cst‡fd†ˆiDƒƒS(s+Get a new dict with the exported variables.c3s&x|]}|ˆi|fVqWdS(N(R&(R@RA(R/(s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pys s (R R>(R/((R/s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyt get_exported›scCst|i|iS(s`Return a copy of the complete context as dict including the exported variables. (R R*R&(R/((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pytget_allŸscOsrt}t|tƒoOt|ddƒo|f|}qet|ddƒo|if|}qen|||ŽS(sðCall the callable with the arguments and keyword arguments provided but inject the active context or environment as first argument if the callable is a :func:`contextfunction` or :func:`environmentfunction`. tcontextfunctionitenvironmentfunction(tTruet isinstancet_context_function_typestgetattrR#(t_Context__selft _Context__objtargstkwargst__traceback_hide__((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pytcall¥scCsNt|i|ih|itd|ƒ}|iid„|iiƒDƒƒ|S(s5Internal helper function to create a derived context.css+x$|]\}}|t|ƒfVqWdS(N(tlist(R@RARB((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pys ¹s N( R-R#R6R*RQRR%tupdateR!(R/R)R0((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pytderivedµs#cs1‡fd†}ttˆƒi|_ˆ|_|S(Ncst|iƒˆƒƒS((RTRN(R/(tmeth(s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR3½s(RTR R=R:(R^tproxy((R^s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyt_all¼s tkeystvaluestitemstiterkeyst itervaluesR!cCs||ijp ||ijS(N(R&R*(R/R6((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyt __contains__ÍscCs3|i|ƒ}t|tƒot|ƒ‚n|S(sTLookup a variable or raise `KeyError` if the variable is undefined. (RLRRt UndefinedRI(R/R+titem((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR8ÐscCs&d|iit|iƒƒ|ifS(Ns <%s %s of %r>(R9R:treprRNR6(R/((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR;Ùs (sparentsvarss environments exported_varssnamesblockss __weakref__N(R:R<R=t __slots__R1RDRRKRLRMRNR RZR]R`RaRbRcRR RdReR!RfR8R;(((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR"Zs.           (tMappingR5cBs5eZdZd„Zed„ƒZed„ƒZRS(s"One block on a template reference.cCs(||_||_||_||_dS(N(R6t_contextt_stackt_depth(R/R6R0tstacktdepth((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR1ìs   cCsa|idt|iƒjo!|iiid|iddƒSt|i|i|i|idƒS(sSuper the block.is#there is no parent block called %r.R6RD(RntlenRmRlR#RGR6R5(R/((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyRDòs  cCsCt|i|i|iƒƒ}|iiiot|ƒ}n|S(N(RRmRnRlR#R4R(R/trv((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyt__call__üs(R:R<R=R1tpropertyRDR Rs(((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR5és  cBs°eZdZd d„Zd„Zed„ƒZed„ƒZed„ƒZ ed„ƒZ ed„ƒZ d„Z d „Z ed „ƒZeZ[ed „ƒZd „ZRS(s%A loop context for dynamic iteration.cCs]t|ƒ|_||_d|_yt|ƒ|_Wn"ttfj od|_nXdS(Niÿÿÿÿ( titert _iteratort_recursetindex0Rqt_lengtht TypeErrortAttributeErrorR(R/titerabletrecurse((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR1s  cGs,|ptdƒ‚n||it|ƒS(s7Cycles among the arguments with the current loop index.sno items for cycling given(RzRxRq(R/RW((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pytcyclescCs |idjS(i(Rx(R2((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR3scCs|id|ijS(i(Rxtlength(R2((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR3scCs |idS(i(Rx(R2((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR3scCs|i|iS((RRx(R2((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR3scCs|i|iS((RRE(R2((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR3scCs|iS(N(R(R/((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyt__len__!scCs t|ƒS(N(tLoopContextIterator(R/((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyt__iter__$scCs3|idjotdƒ‚n|i||iƒS(NsMTried to call non recursive loop. Maybe you forgot the 'recursive' modifier.(RwRRz(R/R|((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pytloop'scCsS|idjo<t|iƒ}t|ƒ|_t|ƒ|id|_n|iS(Ni(RyRttupleRvRuRqRx(R/R|((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR2s cCsd|ii|i|ifS(Ns <%s %r/%r>(R9R:RER(R/((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR;>s N(R:R<R=RR1R~RttfirsttlastREtrevindext revindex0R€R‚R RƒRsRR;(((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyRs      RcBs/eZdZdZd„Zd„Zd„ZRS(s The iterator for a loop context.R0cCs ||_dS(N(R0(R/R0((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR1JscCs|S(N((R/((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR‚MscCs+|i}|id7_t|iƒ|fS(Ni(R0RxR Rv(R/tctx((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR Ps (scontext(R:R<R=RjR1R‚R (((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyRFs   cBs/eZdZd„Zed„ƒZd„ZRS(sWraps a macro.c Cs[||_||_t|ƒ|_||_||_||_||_||_||_ dS(N( t _environmentt_funcRqt_argument_countR6t argumentstdefaultst catch_kwargst catch_varargstcaller( R/R#tfuncR6RRŽRRR‘((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR1Ys       cOs²g}xt|iƒD]Œ\}}y||}Wnby|i|ƒ}Wq•y|i||i}Wq‘|iid|d|ƒ}q‘Xq•XnX|i|ƒqW|ioL|iddƒ}|djo|iidddƒ}n|i|ƒn|i o|i|ƒn1|o)t d|i t t|ƒƒfƒ‚n|io|i||iƒn=t|ƒ|ijo&t d|i t|iƒfƒ‚n|i|ŒS(Nsparameter %r was not providedR6R‘sNo caller defineds%macro %r takes no keyword argument %rs+macro %r takes not more than %d argument(s)(t enumerateRtpopRŽRŒRŠRGRR‘RRRzR6R RuRRqR‹(R/RWRXRtidxR6R,R‘((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyRses@      #  cCs4d|ii|idjodp t|iƒfS(Ns<%s %s>t anonymous(R9R:R6RRi(R/((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR;‹s (R:R<R=R1R RsR;(((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyRVs &RgcBsØeZdZd Zddded„Zed„ƒZeZ Z Z Z Z ZZZZZZZZZZZZZZZZZZZ Z!Z"d„Z#d„Z$d „Z%d „Z&d „Z'd „Z(RS(sVThe default undefined type. This undefined type can be printed and iterated over, but every other access will raise an :exc:`UndefinedError`: >>> foo = Undefined(name='foo') >>> str(foo) '' >>> not foo True >>> foo + 42 Traceback (most recent call last): ... UndefinedError: 'foo' is undefined t_undefined_hintt_undefined_objt_undefined_namet_undefined_exceptioncCs(||_||_||_||_dS(N(R—R˜R™Rš(R/thinttobjR6texc((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR1£s   cOs |idjot|idjod|i}qt|itƒp d|iii|if}qd|iii|if}n |i}|i|ƒ‚dS(siRegular callback function for undefined objects that raises an `UndefinedError` on call. s%r is undefineds%r object has no element %rs%r object has no attribute %rN( R—RR˜R™RRt basestringR9R:Rš(R/RWRXR›((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyt_fail_with_undefined_error©s   cCst|ƒidƒS(Nsutf-8(Rtencode(R/((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyt__str__ÆscCsdS(Nu((R/((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyt __unicode__ÉscCsdS(Ni((R/((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR€ÌsccsdS(N((R/((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR‚ÏscCstS(N(tFalse(R/((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyt __nonzero__ÓscCsdS(NRg((R/((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR;Ös(s_undefined_hints_undefined_objs_undefined_names_undefined_exceptionN()R:R<R=RjRR R1R RŸt__add__t__radd__t__mul__t__rmul__t__div__t__rdiv__t __truediv__t __rtruediv__t __floordiv__t __rfloordiv__t__mod__t__rmod__t__pos__t__neg__Rst __getattr__R8t__lt__t__le__t__gt__t__ge__t__int__t __float__t __complex__t__pow__t__rpow__R¡R¢R€R‚R¤R;(((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyRg’s j     tDebugUndefinedcBseZdZdZd„ZRS(sAn undefined that returns the debug info when printed. >>> foo = DebugUndefined(name='foo') >>> str(foo) '{{ foo }}' >>> not foo True >>> foo + 42 Traceback (most recent call last): ... UndefinedError: 'foo' is undefined cCsR|idjo7|idjo d|iSd|iii|ifSd|iS(Nu{{ %s }}s{{ no such element: %s[%r] }}u!{{ undefined value printed: %s }}(R—RR˜R™R9R:(R/((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR¢és   ((R:R<R=RjR¢(((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR½Ús tStrictUndefinedcBs1eZdZdZeiZZZZ Z Z RS(s=An undefined that barks on print and iteration as well as boolean tests and all kinds of comparisons. In other words: you can do nothing with it except checking if it's defined using the `defined` test. >>> foo = StrictUndefined(name='foo') >>> str(foo) Traceback (most recent call last): ... UndefinedError: 'foo' is undefined >>> not foo Traceback (most recent call last): ... UndefinedError: 'foo' is undefined >>> foo + 42 Traceback (most recent call last): ... UndefinedError: 'foo' is undefined (( R:R<R=RjRgRŸR‚R¢R€R¤t__eq__t__ne__(((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyR¾ôs(+R=tsyst itertoolsRRt jinja2.utilsRRRRRRRR R R tjinja2.exceptionsR R Rt__all__RSRRRRRR-tobjectRR"t collectionsRktregistert ImportErrorR5RRRRgR½R¾Rj(((s4/usr/lib64/python2.6/site-packages/jinja2/runtime.pyt s: F      ˆB<H