| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The previous commit assumes that the filter will always be a Markup
type, which is not correct.
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This unescapes after concatenating, to fix a bug introduced in Jinja
2.10 where lines concatenated contain escaped versions of non-ascii
characters.
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix typo: apparenlty -> apparently.
|
|/ / / / / |
|
| | | | |
| | | | |
| | | | | |
Found via `codespell -q 3` using v1.12.0.dev0
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Lazy asyncsupport.patch_all()
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
fix unrelated docs issue
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
fixes #765
|
|/ / / /
| | | |
| | | | |
There is now Python 3 support...
|
|\ \ \ \
| | | | |
| | | | | |
Allow to pass a list to native_concat
|
| | | | | |
|
| | | | | |
|
|/ / / /
| | | |
| | | | |
closes #800
|
|\ \ \ \
| | | | |
| | | | | |
Fix typo instanciable > instantiable
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Trivial typos
|
|/ / / /
| | | |
| | | | |
Most non-user facing.
|
|/ / / |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
clean up make-release.py for py3
add rst extension to CHANGES for GitHub
clean up changelog formatting
|
| | |
| | |
| | |
| | |
| | | |
- e.g {% set foo | trim %}...{% endset %}
- closes #486
|
|\ \ \
| | | |
| | | | |
Add support for the Environment to optionally return native types.
|
| |\ \ \
| |/ / /
|/| | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Pretty much all other entries also use past tense
|
|\ \ \ \
| | |/ /
| |/| | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This avoids deep nesting in case of many `{% elif .. %}` blocks (which
would fail during execution) and also deep recursion (which may fail
during compilation)
fixes #759
|
|\ \ \ \
| |/ / / |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Since commit d67f0fd4cc2a4af08f51f4466150d49da7798729, callers
of Context.get_all() need to make a copy it they're going to
modify the result.
Fixes: d67f0fd4cc2a ("Generalize scoping. This fixes #603")
|
| |\ \ \
| | | | |
| | | | | |
Make tojson always safe (fix #709)
|
| | | | |
| | | | |
| | | | |
| | | | | |
[ci skip]
|
| |/ / / |
|
| | | | |
|
| | | | |
|
| | |\ \
| |_|/ /
|/| | | |
|
|\ \ \ \
| | | | |
| | | | | |
Adds tests for the memcached bytecode cache module
|
| | | | | |
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Dictsort reverse
|
| | | | |
| | | | |
| | | | |
| | | | | |
use ignore_case function
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
runtime: avoid assumption that all objects provide __call__
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Objects which are backed by native extensions do not provide
a __call__ attribute, but are none the less callable if the
native extension provides a 'tp_call' implementation.
The jinja2.runtime.Context.call method unconditionally
access the '__call__' attribute causing an exception to be
raised if the object was a native extension method.
A demo of the problem can be seen using PyGObject:
$ cat demo.py
#!/usr/bin/python
from gi.repository import Gio
from jinja2 import Environment
f = Gio.File.new_for_path("/some/file.txt")
print f.get_uri()
t = Environment().from_string("""{{f.get_uri()}}""")
print t.render(f=f)
Which when run results in
$ ./demo.py
file:///some/file.txt
Traceback (most recent call last):
File "./demo.py", line 10, in <module>
print t.render(f=f)
File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "<template>", line 1, in top-level template code
AttributeError: 'gi.FunctionInfo' object has no attribute '__call__'
After this patch it produces
$ ./demo.py
file:///some/file.txt
file:///some/file.txt
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Ignore empty lines in indent filter #681
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
add test for single line
update changelog
|