changeset 259:50cc68af8874

modify templates to not use 'with context' because this kills pypy's performance this is due to use of sys._getframe by jinja2. one also needs to patch logging/__init__.py of pypy and set _srcfile to None for same reasons.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 25 Jun 2011 17:04:58 +0200
parents f6ca659f4a4f
children 51e077feea0b
files MoinMoin/templates/base.html MoinMoin/templates/layout.html MoinMoin/templates/show.html
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/base.html	Sat Jun 25 16:12:27 2011 +0200
+++ b/MoinMoin/templates/base.html	Sat Jun 25 17:04:58 2011 +0200
@@ -1,5 +1,5 @@
 <!DOCTYPE html>{# this is html5, xmlish variant #}
-{%- import "snippets.html" as snippets with context %}
+{%- import "snippets.html" as snippets without context %}
 {%- set head = snippets.head() %}
 {%- set scripts = snippets.scripts() %}
 {%- set stylesheets = snippets.stylesheets() %}
--- a/MoinMoin/templates/layout.html	Sat Jun 25 16:12:27 2011 +0200
+++ b/MoinMoin/templates/layout.html	Sat Jun 25 17:04:58 2011 +0200
@@ -1,7 +1,7 @@
-{% import "forms.html" as forms %}
+{% import "forms.html" as forms without context %}
 {% extends "base.html" %}
 
-{% import "snippets.html" as snippets with context %}
+{% import "snippets.html" as snippets without context %}
 {% set logo = snippets.logo() %}
 {% set before_header = snippets.before_header() %}
 {% set after_header = snippets.after_header() %}
--- a/MoinMoin/templates/show.html	Sat Jun 25 16:12:27 2011 +0200
+++ b/MoinMoin/templates/show.html	Sat Jun 25 17:04:58 2011 +0200
@@ -10,7 +10,7 @@
     {%- endif %}
 {% endblock %}
 
-{% import "itemviews.html" as itemviews with context %}
+{% import "itemviews.html" as itemviews without context %}
 
 {% block header_itemviews %}
     {{ itemviews }}