[Erp5-report] r26629 - /erp5/trunk/products/ERP5Type/Constraint/TALESConstraint.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Apr 24 21:20:25 CEST 2009
Author: yo
Date: Fri Apr 24 21:20:24 2009
New Revision: 26629
URL: http://svn.erp5.org?rev=26629&view=rev
Log:
Fall back to zope.tales.tales, if Products.PageTemplates.TALES is not found.
Modified:
erp5/trunk/products/ERP5Type/Constraint/TALESConstraint.py
Modified: erp5/trunk/products/ERP5Type/Constraint/TALESConstraint.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Constraint/TALESConstraint.py?rev=26629&r1=26628&r2=26629&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Constraint/TALESConstraint.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Constraint/TALESConstraint.py [utf8] Fri Apr 24 21:20:24 2009
@@ -30,7 +30,12 @@
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
More information about the Erp5-report
mailing list