[Zope-Checkins]
SVN: Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/Expressions.py
The provider: TALES expression is supported since Five 1.4.
Five 1.5 is included
Philipp von Weitershausen
philikon at philikon.de
Tue May 9 05:17:43 EDT 2006
Log message for revision 68054:
The provider: TALES expression is supported since Five 1.4. Five 1.5 is included
in Zope 2.10 now, so we could just as well register it here. Gets rid of some
stupid code duplication in Five as well...
Changed:
U Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/Expressions.py
-=-
Modified: Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/Expressions.py
===================================================================
--- Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/Expressions.py 2006-05-09 08:59:02 UTC (rev 68053)
+++ Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/Expressions.py 2006-05-09 09:17:42 UTC (rev 68054)
@@ -22,6 +22,7 @@
from zope.tales.expressions import DeferExpr, SubPathExpr
from zope.tales.expressions import SimpleModuleImporter
from zope.traversing.adapters import traversePathElement
+from zope.contentprovider.tales import TALESProviderExpression
from zExceptions import NotFound, Unauthorized
from OFS.interfaces import ITraversable
@@ -107,6 +108,7 @@
e.registerType('not', NotExpr)
e.registerType('defer', DeferExpr)
e.registerType('lazy', LazyExpr)
+ e.registerType('provider', TALESProviderExpression)
e.registerBaseName('modules', SecureModuleImporter)
return e
More information about the Zope-Checkins
mailing list