Did I find the right examples for you? yes no

All Samples(185)  |  Call(67)  |  Derive(0)  |  Import(118)
Raised if a template tries to do something insecure if the
sandbox is enabled.

src/w/e/webapp2_example-HEAD/lib/jinja2/sandbox.py   webapp2_example(Download)
import operator
from jinja2.environment import Environment
from jinja2.exceptions import SecurityError
from jinja2.utils import FunctionType, MethodType, TracebackType, CodeType, \
     FrameType, GeneratorType
        # errors when proxying the call.
        if not __self.is_safe_callable(__obj):
            raise SecurityError('%r is not safely callable' % (__obj,))
        return __context.call(__obj, *args, **kwargs)
 

src/g/a/gae-twitter-oauth-example-HEAD/jinja2/sandbox.py   gae-twitter-oauth-example(Download)
from jinja2.runtime import Undefined
from jinja2.environment import Environment
from jinja2.exceptions import SecurityError
from jinja2.utils import FunctionType, MethodType, TracebackType, CodeType, \
     FrameType, GeneratorType
        # errors when proxying the call.
        if not __self.is_safe_callable(__obj):
            raise SecurityError('%r is not safely callable' % (__obj,))
        return __context.call(__obj, *args, **kwargs)
 

src/w/e/webapp2_example-HEAD/lib/jinja2/testsuite/security.py   webapp2_example(Download)
     ImmutableSandboxedEnvironment, unsafe
from jinja2 import Markup, escape
from jinja2.exceptions import SecurityError, TemplateSyntaxError, \
     TemplateRuntimeError
 

src/m/i/microblog-HEAD/flask/lib/python2.7/site-packages/jinja2/sandbox.py   microblog(Download)
import operator
from jinja2.environment import Environment
from jinja2.exceptions import SecurityError
from jinja2._compat import string_types, function_type, method_type, \
     traceback_type, code_type, frame_type, generator_type, PY2
        # errors when proxying the call.
        if not __self.is_safe_callable(__obj):
            raise SecurityError('%r is not safely callable' % (__obj,))
        return __context.call(__obj, *args, **kwargs)
 

src/s/l/slider-HEAD/slider-agent/src/main/python/jinja2/jinja2/sandbox.py   slider(Download)
from jinja2.runtime import Undefined
from jinja2.environment import Environment
from jinja2.exceptions import SecurityError
from jinja2.utils import FunctionType, MethodType, TracebackType, CodeType, \
     FrameType, GeneratorType
        # errors when proxying the call.
        if not __self.is_safe_callable(__obj):
            raise SecurityError('%r is not safely callable' % (__obj,))
        return __context.call(__obj, *args, **kwargs)
 

src/w/i/wizlang-HEAD/venv/lib/python2.7/site-packages/jinja2/sandbox.py   wizlang(Download)
import operator
from jinja2.environment import Environment
from jinja2.exceptions import SecurityError
from jinja2._compat import string_types, function_type, method_type, \
     traceback_type, code_type, frame_type, generator_type, PY2
        # errors when proxying the call.
        if not __self.is_safe_callable(__obj):
            raise SecurityError('%r is not safely callable' % (__obj,))
        return __context.call(__obj, *args, **kwargs)
 

src/o/h/oh-mainline-HEAD/vendor/packages/Jinja2/jinja2/sandbox.py   oh-mainline(Download)
import operator
from jinja2.environment import Environment
from jinja2.exceptions import SecurityError
from jinja2._compat import string_types, function_type, method_type, \
     traceback_type, code_type, frame_type, generator_type, PY2
        # errors when proxying the call.
        if not __self.is_safe_callable(__obj):
            raise SecurityError('%r is not safely callable' % (__obj,))
        return __context.call(__obj, *args, **kwargs)
 

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Doc/jinja2/sandbox.py   main(Download)
from jinja2.runtime import Undefined
from jinja2.environment import Environment
from jinja2.exceptions import SecurityError
from jinja2.utils import FunctionType, MethodType, TracebackType, CodeType, \
     FrameType, GeneratorType
        # errors when proxying the call.
        if not __self.is_safe_callable(__obj):
            raise SecurityError('%r is not safely callable' % (__obj,))
        return __context.call(__obj, *args, **kwargs)
 

src/c/a/capture-the-flag-HEAD/ctf1/append/home/level02/jinja2/sandbox.py   capture-the-flag(Download)
import operator
from jinja2.environment import Environment
from jinja2.exceptions import SecurityError
from jinja2.utils import FunctionType, MethodType, TracebackType, CodeType, \
     FrameType, GeneratorType
        # errors when proxying the call.
        if not __self.is_safe_callable(__obj):
            raise SecurityError('%r is not safely callable' % (__obj,))
        return __context.call(__obj, *args, **kwargs)
 

src/r/e/Recipe-Website-Tutorial-HEAD/bottleRecipeWebsite/tutorialzz/bottle/packages/jinja2/sandbox.py   Recipe-Website-Tutorial(Download)
import operator
from jinja2.environment import Environment
from jinja2.exceptions import SecurityError
from jinja2.utils import FunctionType, MethodType, TracebackType, CodeType, \
     FrameType, GeneratorType
        # errors when proxying the call.
        if not __self.is_safe_callable(__obj):
            raise SecurityError('%r is not safely callable' % (__obj,))
        return __context.call(__obj, *args, **kwargs)
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next