Commit d6dd4ee8 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Fall back to zope.tales.tales, if Products.PageTemplates.TALES is not found.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26629 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 92683ca2
......@@ -30,7 +30,12 @@ import sys
from Products.CMFCore.Expression import Expression
from ZODB.POSException import ConflictError
from Products.PageTemplates.TALES import CompilerError
try:
# Zope 2.8
from Products.PageTemplates.TALES import CompilerError
except ImportError:
# Zope 2.12
from zope.tales.tales import CompilerError
from zLOG import LOG, PROBLEM
from Constraint import Constraint
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment