summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyramid/chameleon_text.py3
-rw-r--r--pyramid/chameleon_zpt.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/pyramid/chameleon_text.py b/pyramid/chameleon_text.py
index c50b4cb44..fa89e4369 100644
--- a/pyramid/chameleon_text.py
+++ b/pyramid/chameleon_text.py
@@ -49,6 +49,9 @@ class TextTemplateRenderer(object):
@reify # avoid looking up reload_templates before manager pushed
def template(self):
+ if sys.platform.startswith('java'): # pragma: no cover
+ raise RuntimeError(
+ 'Chameleon templates are not compatible with Jython')
settings = get_settings()
debug = False
auto_reload = False
diff --git a/pyramid/chameleon_zpt.py b/pyramid/chameleon_zpt.py
index ec25bded7..02c1f5deb 100644
--- a/pyramid/chameleon_zpt.py
+++ b/pyramid/chameleon_zpt.py
@@ -31,6 +31,9 @@ class ZPTTemplateRenderer(object):
@reify # avoid looking up reload_templates before manager pushed
def template(self):
+ if sys.platform.startswith('java'): # pragma: no cover
+ raise RuntimeError(
+ 'Chameleon templates are not compatible with Jython')
settings = get_settings()
debug = False
auto_reload = False