Skip to content
Myr

Automated merge with ssh://team@pocoo.org/jinja2-main

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parents 9a7306e, 3e497b7 · Browse files · 2 files+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−5 removed

  • other:+5 added−5 removed

2 files+5 added−5 removed

modified:jinja2/bccache.py+1 added-1 removed
234 unmodified lines
235 - `cmemcache <http://gijsbert.org/cmemcache/>`_236237 (Unfortunately the django cache interface is not compatible because it238 does not support storing binary data, only unicode. You can however pass239 the underlaying cache client to the bytecode cache which is available239 the underlying cache client to the bytecode cache which is available240 as `django.core.cache.cache._client`.)241242 The minimal interface for the client passed to the constructor is this:243
38 unmodified lines
modified:jinja2/environment.py+4 added-4 removed
22 unmodified lines
23_spontaneous_environments = LRUCache(10)242526def get_spontaneous_environment(*args):27 """Return a new spontaneus environment. A spontaneus environment is an28 unnamed and unaccessable (in theory) environment that is used for29 template generated from a string and not from the file system.27 """Return a new spontaneous environment. A spontaneous environment is an28 unnamed and unaccessible (in theory) environment that is used for29 templates generated from a string and not from the file system.30 """31 try:32 env = _spontaneous_environments.get(args)33 except TypeError:
493 unmodified lines
527 t.name = namespace['name']528 t.filename = code.co_filename529 t.blocks = namespace['blocks']530531 # render function and module 531 # render function and module532 t.root_render_func = namespace['root']533 t._module = None534535 # debug and loader helpers
227 unmodified lines