minor clarification

parent 9715d3af
...@@ -51,14 +51,15 @@ class ExpressionTests(unittest.TestCase): ...@@ -51,14 +51,15 @@ class ExpressionTests(unittest.TestCase):
ec = self.ec ec = self.ec
assert ec.evaluate('x | nothing') is None assert ec.evaluate('x | nothing') is None
# XXX this fails because Zope 3 doesn't allow empty path # XXX The following test fails because Zope 3 doesn't allow
# elements. My idea is to deprecate blank path elements and # empty path elements. My idea is to eventually disallow
# allow them for the time of the deprecation period. We do # blank path elements, but to allow them for a limited
# that by implementing our own SubPathExpr that just looks for # deprecation period. We do that by implementing our own
# empty path elements and replaces them with a call to a # SubPathExpr that just looks for empty path elements and
# TALESNamespace adapter that explicitly does the empty # replaces them with a call to a TALESNamespace adapter that
# element lookup. Then we hand off to the standard Zope 3 # explicitly does the empty element lookup. Then we hand off
# SubPathExpr implementation. Something along these lines: # to the standard Zope 3 SubPathExpr implementation.
# Something along these lines (pseudo-ish code!):
# #
# class Zope2SubPathExpr(SubPathExpr): # class Zope2SubPathExpr(SubPathExpr):
# def __init__(self, text, ...): # def __init__(self, text, ...):
......
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