/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/sandbox.pyo (9718B)
gIc@sdZddkZddklZddklZddklZddkl Z l Z l Z l Z l Z lZdZedd d d d gZed ddgZddkZeiddeddddklZddklZlZddklZefZeeefZeefZy!ddk l!Z!ee!f7ZWne"j onXyGddkl#Z#l$Z$l%Z%ee#f7Zee$f7Zee%f7ZWne"j onXee&dddddddd gfee&ddd!d"d gfee&d#d$d%d&d'dgfee&d#d(dd'd)dd*dd+g ffZ'd,Z(d-Z)d.Z*d/Z+d0efd1YZ,d2e,fd3YZ-dS(4sj jinja2.sandbox ~~~~~~~~~~~~~~ Adds a sandbox layer to Jinja as it was the default behavior in the old Jinja 1 releases. This sandbox is slightly different from Jinja 1 as the default behavior is easier to use. The behavior can be changed by subclassing the environment. :copyright: (c) 2009 by the Jinja Team. :license: BSD. iN(t Undefined(t Environment(t SecurityError(t FunctionTypet MethodTypet TracebackTypetCodeTypet FrameTypet GeneratorTypeit func_closuret func_codet func_dictt func_defaultst func_globalstim_classtim_functim_selftignoresthe sets moduletmodulesjinja2.sandbox(tdeque(tUserDictt DictMixin(tUserList(tSet(t MutableSettMutableMappingtMutableSequencetaddtcleartdifference_updatetdiscardtpoptremovetsymmetric_difference_updatetupdatetpopitemt setdefaulttappendtreversetinserttsorttextendt appendleftt extendlefttpoplefttrotatecGs7t|}t|tjotdtn|S(sWA range that can't generate ranges with a length of more than MAX_RANGE items. s+range too big, maximum size for range is %d(txrangetlent MAX_RANGEt OverflowError(targstrng((s4/usr/lib64/python2.6/site-packages/jinja2/sandbox.pyt safe_rangeRs  cCs t|_|S(sk Mark a function or method as unsafe:: @unsafe def delete(self): pass (tTruetunsafe_callable(tf((s4/usr/lib64/python2.6/site-packages/jinja2/sandbox.pytunsafe]s cCst|to|tjotSnt|to#|tjp |tjotSnkt|to|djotSnEt|ttt fotSt|t o|djotSn|i dS(s Test if the attribute given is an internal python attribute. For example this function returns `True` for the `func_code` attribute of python objects. This is useful if the environment method :meth:`~SandboxedEnvironment.is_safe_attribute` is overriden. >>> from jinja2.sandbox import is_internal_attribute >>> is_internal_attribute(lambda: None, "func_code") True >>> is_internal_attribute((lambda x:x).func_code, 'co_code') True >>> is_internal_attribute(str, "upper") False tmrotgi_framet__( t isinstanceRtUNSAFE_FUNCTION_ATTRIBUTESR5RtUNSAFE_METHOD_ATTRIBUTESttypeRRRRt startswith(tobjtattr((s4/usr/lib64/python2.6/site-packages/jinja2/sandbox.pytis_internal_attributeis          cCs6x/tD]'\}}t||o ||jSqWtS(sThis function checks if an attribute on a builtin mutable object (list, dict, set or deque) would modify it if called. It also supports the "user"-versions of the objects (`sets.Set`, `UserDict.*` etc.) and with Python 2.6 onwards the abstract base classes `MutableSet`, `MutableMapping`, and `MutableSequence`. >>> modifies_known_mutable({}, "clear") True >>> modifies_known_mutable({}, "keys") False >>> modifies_known_mutable([], "append") True >>> modifies_known_mutable([], "index") False If called with an unsupported object (such as unicode) `False` is returned. >>> modifies_known_mutable("foo", "upper") False (t _mutable_specR<tFalse(RARBttypespecR8((s4/usr/lib64/python2.6/site-packages/jinja2/sandbox.pytmodifies_known_mutables  tSandboxedEnvironmentcBsSeZdZeZdZdZdZdZdZ dZ dZ RS(sThe sandboxed environment. It works like the regular environment but tells the compiler to generate sandboxed code. Additionally subclasses of this environment may override the methods that tell the runtime what attributes or functions are safe to access. If the template tries to access insecure code a :exc:`SecurityError` is raised. However also other exceptions may occour during the rendering so the caller has to ensure that all exceptions are catched. cOs$ti|||t|idtwarningstfilterwarningstDeprecationWarningt collectionsRRRRt_mutable_set_typestdictt_mutable_mapping_typestlistt_mutable_sequence_typestsetsRt ImportErrorRRRt frozensetRDR4R8RCRGRHRi(((s4/usr/lib64/python2.6/site-packages/jinja2/sandbox.pyts\ .       Y