[ZPT] CVS: Packages/TAL - TALGenerator.py:1.32

guido@digicool.com guido@digicool.com
Mon, 9 Apr 2001 22:09:19 -0400 (EDT)


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

Modified Files:
	TALGenerator.py 
Log Message:
Add version and mode opcodes to macros.



--- Updated File TALGenerator.py in package Packages/TAL --
--- TALGenerator.py	2001/04/09 22:53:15	1.31
+++ TALGenerator.py	2001/04/10 02:09:18	1.32
@@ -399,6 +399,8 @@
             self.emit("setPosition", position)
         if defineMacro:
             self.pushProgram()
+            self.emit("version", TAL_VERSION)
+            self.emit("mode", self.xml and "xml" or "html")
             todo["defineMacro"] = defineMacro
         if useMacro:
             self.pushSlots()