summaryrefslogtreecommitdiff
path: root/textproc/py-jinja2
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2011-09-05 10:54:32 +0000
committeradam <adam@pkgsrc.org>2011-09-05 10:54:32 +0000
commit0841f9f381c8dbc9848a302371a9d5d92088e184 (patch)
treea7b3ede66e775da1b8cabd465c565f4e530d1e22 /textproc/py-jinja2
parentcde9a27c432fd4d5e8faacf75741c639f2cb3c55 (diff)
downloadpkgsrc-0841f9f381c8dbc9848a302371a9d5d92088e184.tar.gz
Changes 2.6:
* internal attributes now raise an internal attribute error now instead of returning an undefined. This fixes problems when passing undefined objects to Python semantics expecting APIs. * traceback support now works properly for PyPy. (Tested with 1.4) * implemented operator intercepting for sandboxed environments. This allows application developers to disable builtin operators for better security. (For instance limit the mathematical operators to actual integers instead of longs) * groupby filter now supports dotted notation for grouping by attributes of attributes. * scoped blocks not properly treat toplevel assignments and imports. Previously an import suddenly "disappeared" in a scoped block. * automatically detect newer Python interpreter versions before loading code from bytecode caches to prevent segfaults on invalid opcodes. The segfault in earlier Jinja2 versions here was not a Jinja2 bug but a limitation in the underlying Python interpreter. If you notice Jinja2 segfaulting in earlier versions after an upgrade of the Python interpreter you don't have to upgrade, it's enough to flush the bytecode cache. This just no longer makes this necessary, Jinja2 will automatically detect these cases now. * the sum filter can now sum up values by attribute. This is a backwards incompatible change. The argument to the filter previously was the optional starting index which defaultes to zero. This now became the second argument to the function because it's rarely used. * like sum, sort now also makes it possible to order items by attribute. * like sum and sort, join now also is able to join attributes of objects as string. * the internal eval context now has a reference to the environment. * added a mapping test to see if an object is a dict or an object with a similar interface.
Diffstat (limited to 'textproc/py-jinja2')
-rw-r--r--textproc/py-jinja2/Makefile4
-rw-r--r--textproc/py-jinja2/distinfo8
2 files changed, 6 insertions, 6 deletions
diff --git a/textproc/py-jinja2/Makefile b/textproc/py-jinja2/Makefile
index 35d9de7e311..2ed812d1e8a 100644
--- a/textproc/py-jinja2/Makefile
+++ b/textproc/py-jinja2/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2011/03/23 11:38:31 adam Exp $
+# $NetBSD: Makefile,v 1.4 2011/09/05 10:54:32 adam Exp $
-DISTNAME= Jinja2-2.5.5
+DISTNAME= Jinja2-2.6
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
CATEGORIES= textproc python
MASTER_SITES= http://pypi.python.org/packages/source/J/Jinja2/
diff --git a/textproc/py-jinja2/distinfo b/textproc/py-jinja2/distinfo
index 159656a011b..c2cd1fc8844 100644
--- a/textproc/py-jinja2/distinfo
+++ b/textproc/py-jinja2/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.3 2011/03/23 11:38:31 adam Exp $
+$NetBSD: distinfo,v 1.4 2011/09/05 10:54:32 adam Exp $
-SHA1 (Jinja2-2.5.5.tar.gz) = a983513cdc4c371007323cc2288f9add32e76f65
-RMD160 (Jinja2-2.5.5.tar.gz) = dd11840c285e05ff53d6b18f5d92c093fa6b23ca
-Size (Jinja2-2.5.5.tar.gz) = 438586 bytes
+SHA1 (Jinja2-2.6.tar.gz) = f122aeb324b2009bbcee341d0f001a047ac4bbe5
+RMD160 (Jinja2-2.6.tar.gz) = 77829eabfc71dd6cf7eece1fe5d0b96b21de3b18
+Size (Jinja2-2.6.tar.gz) = 389741 bytes