/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/environment.pyo (34103B)
xJc @sdZddkZddklZddkTddklZlZddkl Z ddk l Z ddk l Z dd klZlZdd klZdd klZlZlZlZlZlZlZed Zead ZdZdZ dZ!dZ"de#fdYZ$de#fdYZ%de#fdYZ&de#fdYZ'de#fdYZ(e%e$_)dS(s jinja2.environment ~~~~~~~~~~~~~~~~~~ Provides a class that holds runtime and parsing time options. :copyright: (c) 2009 by the Jinja Team. :license: BSD, see LICENSE for more details. iN(tnodes(t*(t get_lexert TokenStream(tParser(toptimize(tgenerate(t Undefinedt new_context(tTemplateSyntaxError(t import_stringtLRUCachetMarkuptmissingtconcattconsumet internalcodei cGscyti|}Wntj ot|SX|dj o|St|t|<}t|_|S(sReturn a new spontaneous environment. A spontaneous environment is an unnamed and unaccessible (in theory) environment that is used for templates generated from a string and not from the file system. N(t_spontaneous_environmentstgett TypeErrort EnvironmenttNonetTruetshared(targstenv((s8/usr/lib64/python2.6/site-packages/jinja2/environment.pytget_spontaneous_environment s   cCs.|djodS|djohSt|S(s*Return the cache class for the given size.iN(RR (tsize((s8/usr/lib64/python2.6/site-packages/jinja2/environment.pyt create_cache0s   cCs7|djodSt|tjohSt|iS(s(Create an empty copy of the given cache.N(RttypetdictR tcapacity(tcache((s8/usr/lib64/python2.6/site-packages/jinja2/environment.pyt copy_cache9s  cCsNh}xA|D]9}t|tot|}n||||i`. `optimized` should the optimizer be enabled? Default is `True`. `undefined` :class:`Undefined` or a subclass of it that is used to represent undefined values in the template. `finalize` A callable that finalizes the variable. Per default no finalizing is applied. `autoescape` If set to true the XML/HTML autoescaping feature is enabled. For more details about auto escaping see :class:`~jinja2.utils.Markup`. `loader` The template loader for this environment. `cache_size` The size of the cache. Per default this is ``50`` which means that if more than 50 templates are loaded the loader will clean out the least recently used template. If the cache size is set to ``0`` templates are recompiled all the time, if the cache size is ``-1`` the cache will not be cleaned. `auto_reload` Some loaders load templates from locations where the template sources may change (ie: file system or database). If `auto_reload` is set to `True` (default) every time a template is requested the loader checks if the source changed and if yes, it will reload the template. For higher performance it's possible to disable that. `bytecode_cache` If set to a bytecode cache object, this object will provide a cache for the internal Jinja bytecode so that templates don't have to be parsed if they were not changed. See :ref:`bytecode-cache` for more information. i2cCs||_||_||_||_||_||_||_||_| |_| |_ | |_ | |_ ||_ ||_ ti|_ti|_ti|_||_d|_t||_||_||_t|| |_t|dS(N(tblock_start_stringtblock_end_stringtvariable_start_stringtvariable_end_stringtcomment_start_stringtcomment_end_stringtline_statement_prefixtline_comment_prefixt trim_blockstnewline_sequencet undefinedt optimizedtfinalizet autoescapetDEFAULT_FILTERStcopytfilterst DEFAULT_TESTStteststDEFAULT_NAMESPACEtglobalstloaderRtbytecode_cacheRR t auto_reloadR)R&R*(tselfR+R,R-R.R/R0R1R2R3R4R&R6R5R7R8R@t cache_sizeRBRA((s8/usr/lib64/python2.6/site-packages/jinja2/environment.pyt__init__s0                  cKsEx>|iD]0\}}t||pt|||q q WdS(sAdd the items to the instance of the environment if they do not exist yet. This is used by :ref:`extensions ` to register callbacks and configuration values without breaking inheritance. N(t iteritemsthasattrtsetattr(RCt attributestkeytvalue((s8/usr/lib64/python2.6/site-packages/jinja2/environment.pytextends cCs;tt}|d=|d=|d=ti|i}|ii|it|_||_ x;|i D]-\}}|t j ot |||qhqhW|t j ot ||_nt|i|_h|_x3|ii D]"\}}|i||i|` this gives you a good overview of the node tree generated. t source_hintN(t_parseR tsystexc_infothandle_exception(RCtsourceRZtfilenameRf((s8/usr/lib64/python2.6/site-packages/jinja2/environment.pytparsefs cCs<t|to|id}nt||||iS(s8Internal parsing function used by `parse` and `compile`.sutf-8(R"tunicodetencodeRRj(RCRhRZRi((s8/usr/lib64/python2.6/site-packages/jinja2/environment.pyRdvscCs_t|}y|ii|||SWntj oti}nX|i|d|dS(sLex the given sourcecode and return a generator that yields tokens as tuples in the form ``(lineno, token_type, value)``. This can be useful for :ref:`extension development ` and debugging templates. This does not perform preprocessing. If you want the preprocessing of the extensions to be applied you have to filter source through the :meth:`preprocess` method. RcN(Rktlexert tokeniterR ReRfRg(RCRhRZRiRf((s8/usr/lib64/python2.6/site-packages/jinja2/environment.pytlex|s cs+tfd|iit|S(sPreprocesses the source with all extensions. This is automatically called for all parsing and compiling methods but *not* for :meth:`lex` because there you usually only want the actual source tokenized. cs|i|S((t preprocess(tste(RZRi(s8/usr/lib64/python2.6/site-packages/jinja2/environment.pyts(treduceR&t itervaluesRk(RCRhRZRi((RZRis8/usr/lib64/python2.6/site-packages/jinja2/environment.pyRpscCs|i|||}|ii||||}xL|iiD];}|i|}t|tpt|||}q@q@W|S(sCalled by the parser to do the preprocessing and filtering for all the extensions. Returns a :class:`~jinja2.lexer.TokenStream`. (RpRmttokenizeR&Rut filter_streamR"R(RCRhRZRitstatetstreamtext((s8/usr/lib64/python2.6/site-packages/jinja2/environment.pyt _tokenizescCsd}yt|to|}|i|||}n|iot||}nt||||}|o|S|djo d}n$t|to|id}nt ||dSWnt j ot i }nX|i |d|dS(sCompile a node or template source code. The `name` parameter is the load name of the template after it was joined using :meth:`join_path` if necessary, not the filename on the file system. the `filename` parameter is the estimated filename of the template on the file system. If the template came from a database or memory this can be omitted. The return value of this method is a python code object. If the `raw` parameter is `True` the return value will be a string with python code equivalent to the bytecode returned otherwise. This method is mainly used internally. s