Did I find the right examples for you? yes no

All Samples(237)  |  Call(118)  |  Derive(0)  |  Import(119)
A generic runtime error in the template engine.  Under some situations
Jinja may raise this exception.

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
 
        def disable_op(left, right):
            raise TemplateRuntimeError('that operator so does not work')
        for expr, ctx, rv in ('1 + 2', {}, '3'), ('a + 2', {'a': 2}, '4'):
            env = SandboxedEnvironment()
            env.binop_table['+'] = disable_op
        def disable_op(arg):
            raise TemplateRuntimeError('that operator so does not work')
        for expr, ctx, rv in ('-1', {}, '-1'), ('-a', {'a': 2}, '-2'):
            env = SandboxedEnvironment()
            env.unop_table['-'] = disable_op

src/w/e/webapp2_example-HEAD/lib/jinja2/runtime.py   webapp2_example(Download)
from jinja2.utils import Markup, partial, soft_unicode, escape, missing, \
     concat, internalcode, next, object_type_repr
from jinja2.exceptions import UndefinedError, TemplateRuntimeError, \
     TemplateNotFound
 

src/g/a/gae-twitter-oauth-example-HEAD/jinja2/runtime.py   gae-twitter-oauth-example(Download)
     concat, MethodType, FunctionType, internalcode, next, \
     object_type_repr
from jinja2.exceptions import UndefinedError, TemplateRuntimeError, \
     TemplateNotFound
 

src/m/i/microblog-HEAD/flask/lib/python2.7/site-packages/jinja2/environment.py   microblog(Download)
from jinja2.compiler import generate
from jinja2.runtime import Undefined, new_context
from jinja2.exceptions import TemplateSyntaxError, TemplateNotFound, \
     TemplatesNotFound, TemplateRuntimeError
from jinja2.utils import import_string, LRUCache, Markup, missing, \
        func = self.filters.get(name)
        if func is None:
            raise TemplateRuntimeError('no filter named %r' % name)
        args = [value] + list(args or ())
        if getattr(func, 'contextfilter', False):
            if context is None:
                raise TemplateRuntimeError('Attempted to invoke context '
        func = self.tests.get(name)
        if func is None:
            raise TemplateRuntimeError('no test named %r' % name)
        return func(value, *(args or ()), **(kwargs or {}))
 

src/w/i/wizlang-HEAD/venv/lib/python2.7/site-packages/jinja2/environment.py   wizlang(Download)
from jinja2.compiler import generate
from jinja2.runtime import Undefined, new_context
from jinja2.exceptions import TemplateSyntaxError, TemplateNotFound, \
     TemplatesNotFound, TemplateRuntimeError
from jinja2.utils import import_string, LRUCache, Markup, missing, \
        func = self.filters.get(name)
        if func is None:
            raise TemplateRuntimeError('no filter named %r' % name)
        args = [value] + list(args or ())
        if getattr(func, 'contextfilter', False):
            if context is None:
                raise TemplateRuntimeError('Attempted to invoke context '
        func = self.tests.get(name)
        if func is None:
            raise TemplateRuntimeError('no test named %r' % name)
        return func(value, *(args or ()), **(kwargs or {}))
 

src/o/h/oh-mainline-HEAD/vendor/packages/Jinja2/jinja2/environment.py   oh-mainline(Download)
from jinja2.compiler import generate
from jinja2.runtime import Undefined, new_context
from jinja2.exceptions import TemplateSyntaxError, TemplateNotFound, \
     TemplatesNotFound, TemplateRuntimeError
from jinja2.utils import import_string, LRUCache, Markup, missing, \
        func = self.filters.get(name)
        if func is None:
            raise TemplateRuntimeError('no filter named %r' % name)
        args = [value] + list(args or ())
        if getattr(func, 'contextfilter', False):
            if context is None:
                raise TemplateRuntimeError('Attempted to invoke context '
        func = self.tests.get(name)
        if func is None:
            raise TemplateRuntimeError('no test named %r' % name)
        return func(value, *(args or ()), **(kwargs or {}))
 

src/c/a/captain-HEAD/vendor/lib/python/jinja2/environment.py   captain(Download)
from jinja2.compiler import generate
from jinja2.runtime import Undefined, new_context
from jinja2.exceptions import TemplateSyntaxError, TemplateNotFound, \
     TemplatesNotFound, TemplateRuntimeError
from jinja2.utils import import_string, LRUCache, Markup, missing, \
        func = self.filters.get(name)
        if func is None:
            raise TemplateRuntimeError('no filter named %r' % name)
        args = [value] + list(args or ())
        if getattr(func, 'contextfilter', False):
            if context is None:
                raise TemplateRuntimeError('Attempted to invoke context '
        func = self.tests.get(name)
        if func is None:
            raise TemplateRuntimeError('no test named %r' % name)
        return func(value, *(args or ()), **(kwargs or {}))
 

src/s/a/salt-thin-HEAD/Jinja2-2.7/jinja2/environment.py   salt-thin(Download)
from jinja2.compiler import generate
from jinja2.runtime import Undefined, new_context
from jinja2.exceptions import TemplateSyntaxError, TemplateNotFound, \
     TemplatesNotFound, TemplateRuntimeError
from jinja2.utils import import_string, LRUCache, Markup, missing, \
        func = self.filters.get(name)
        if func is None:
            raise TemplateRuntimeError('no filter named %r' % name)
        args = list(args or ())
        if getattr(func, 'contextfilter', False):
            if context is None:
                raise TemplateRuntimeError('Attempted to invoke context '
        func = self.tests.get(name)
        if func is None:
            raise TemplateRuntimeError('no test named %r' % name)
        return func(value, *(args or ()), **(kwargs or {}))
 

src/w/h/whoperator-HEAD/whoperator/libs/jinja2/environment.py   whoperator(Download)
from jinja2.compiler import generate
from jinja2.runtime import Undefined, new_context
from jinja2.exceptions import TemplateSyntaxError, TemplateNotFound, \
     TemplatesNotFound, TemplateRuntimeError
from jinja2.utils import import_string, LRUCache, Markup, missing, \
        func = self.filters.get(name)
        if func is None:
            raise TemplateRuntimeError('no filter named %r' % name)
        args = list(args or ())
        if getattr(func, 'contextfilter', False):
            if context is None:
                raise TemplateRuntimeError('Attempted to invoke context '
        func = self.tests.get(name)
        if func is None:
            raise TemplateRuntimeError('no test named %r' % name)
        return func(value, *(args or ()), **(kwargs or {}))
 

src/s/a/salt-thin-HEAD/jinja2/environment.py   salt-thin(Download)
from jinja2.compiler import generate
from jinja2.runtime import Undefined, new_context
from jinja2.exceptions import TemplateSyntaxError, TemplateNotFound, \
     TemplatesNotFound, TemplateRuntimeError
from jinja2.utils import import_string, LRUCache, Markup, missing, \
        func = self.filters.get(name)
        if func is None:
            raise TemplateRuntimeError('no filter named %r' % name)
        args = list(args or ())
        if getattr(func, 'contextfilter', False):
            if context is None:
                raise TemplateRuntimeError('Attempted to invoke context '
        func = self.tests.get(name)
        if func is None:
            raise TemplateRuntimeError('no test named %r' % name)
        return func(value, *(args or ()), **(kwargs or {}))
 

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