[Zope3-checkins] CVS: Zope3/src/zope/app/sqlexpr - sqlexpr.py:1.2
Philipp von Weitershausen
philikon at philikon.de
Wed Mar 3 21:04:43 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/sqlexpr
In directory cvs.zope.org:/tmp/cvs-serv20441/app/sqlexpr
Modified Files:
sqlexpr.py
Log Message:
Added ITALESExpression interface; it is implemented by all tales
expression type handlers. It serves mere documentational purposes.
=== Zope3/src/zope/app/sqlexpr/sqlexpr.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/sqlexpr/sqlexpr.py:1.1 Fri Feb 27 09:39:41 2004
+++ Zope3/src/zope/app/sqlexpr/sqlexpr.py Wed Mar 3 21:04:13 2004
@@ -18,8 +18,10 @@
__metaclass__ = type
import re
+from zope.interface import implements
from zope.component import getService, createObject
from zope.app.rdb import queryForResults
+from zope.tales.interfaces import ITALESExpression
from zope.tales.expressions import NAME_RE
__metaclass__ = type
@@ -32,6 +34,7 @@
class SQLExpr:
"""SQL Expression Handler class
"""
+ implements(ITALESExpression)
def __init__(self, name, expr, engine):
# Completely taken from StringExpr
More information about the Zope3-Checkins
mailing list