[ZPT] CVS: Packages/TAL - TALInterpreter.py:1.37

guido@digicool.com guido@digicool.com
Fri, 27 Apr 2001 13:31:15 -0400 (EDT)


Update of /cvs-repository/Packages/TAL
In directory korak:/tmp/cvs-serv29976

Modified Files:
	TALInterpreter.py 
Log Message:
Oops, I screwed up.  I accidentally checked in Evan's tentative
changes for CancelAction with the test->tests checkin.  Undo this.

(Also in DummyEngine.py, but there I screwed up the undo, so it will
take a little longer.)



--- Updated File TALInterpreter.py in package Packages/TAL --
--- TALInterpreter.py	2001/04/27 17:25:04	1.36
+++ TALInterpreter.py	2001/04/27 17:31:14	1.37
@@ -157,7 +157,6 @@
         self.macros = macros
         self.engine = engine
         self.TALESError = engine.getTALESError()
-        self.CancelAction = engine.getCancelAction()
         self.stream = stream or sys.stdout
         self.debug = debug
         self.wrap = wrap
@@ -269,8 +268,6 @@
                         value = self.engine.evaluateText(item[3])
                         if value is None:
                             continue
-                        if value is self.CancelAction:
-                            value = item[1]
                 elif (action == "metal" and self.currentMacro and
                       name[-13:] == ":define-macro" and self.metal):
                     name = name[:-13] + ":use-macro"
@@ -317,9 +314,6 @@
         text = self.engine.evaluateText(expr)
         if text is None:
             return
-        if text is self.CancelAction:
-            self.interpret(block)
-            return
         text = cgi.escape(text)
         self.stream_write(text)
 
@@ -330,9 +324,6 @@
         structure = self.engine.evaluateStructure(expr)
         if structure is None:
             return
-        if structure is self.CancelAction:
-            self.interpret(block)
-            return
         text = str(structure)
         if not repldict and not self.strictinsert:
             # Take a shortcut, no error checking
@@ -387,9 +378,6 @@
             self.interpret(block)
             return
         macro = self.engine.evaluateMacro(macroExpr)
-        if macro is self.CancelAction:
-            self.interpret(block)
-            return
         if not isCurrentVersion(macro):
             raise METALError("macro %s has incompatible version %s" %
                              (`macroName`, `getProgramVersion(macro)`),