[ZPT] CVS: Products/PageTemplates - CHANGES.txt:1.17.2.1 HISTORY.txt:1.3.2.1 PageTemplate.py:1.13.2.1 TALES.py:1.20.2.1 ZopePageTemplate.py:1.16.2.1

Evan Simpson evan@zope.com
Tue, 2 Oct 2001 14:13:47 -0400


Update of /cvs-repository/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv29407

Modified Files:
      Tag: zpt-1_4_0
	CHANGES.txt HISTORY.txt PageTemplate.py TALES.py 
	ZopePageTemplate.py 
Log Message:
Pass tracebacks through when possible.


=== Products/PageTemplates/CHANGES.txt 1.17 => 1.17.2.1 ===
   file HISTORY.txt.
 
-    Version 1.4.0
-
-      Features Added
-
-        - ZPTs are now cache-enabled
-
-        - Added property sheet to ZPT
+    Version 1.4.1
 
       Bugs Fixed
 
-        - Expressions with embedded newlines were broken
-
-        - History comparison tried to expand macros
-
-        - Iterator exceptions weren't converted
-
-        - 'Unauthorized' exception couldn't be handled by on-error
+        - Tracebacks were often truncated.


=== Products/PageTemplates/HISTORY.txt 1.3 => 1.3.2.1 ===
   in the file CHANGES.txt.
 
+    Version 1.4.0
+
+      Features Added
+
+        - ZPTs are now cache-enabled
+
+        - Added property sheet to ZPT
+
+      Bugs Fixed
+
+        - Expressions with embedded newlines were broken
+
+        - History comparison tried to expand macros
+
+        - Iterator exceptions weren't converted
+
+        - 'Unauthorized' exception couldn't be handled by on-error
+
     Version 1.3.3
 
       Features Added


=== Products/PageTemplates/PageTemplate.py 1.13 => 1.13.2.1 ===
         return parent._v_macros
 
-class PageTemplate:
+class PageTemplate(Base):
     "Page Templates using TAL, TALES, and METAL"
      
     content_type = 'text/html'


=== Products/PageTemplates/TALES.py 1.20 => 1.20.2.1 ===
             v = expression(self)
             if isinstance(v, Exception):
+                if hasattr(v, 'traceback'):
+                    raise v, None, v.traceback
                 raise v
         except self._nocatch:
             raise


=== Products/PageTemplates/ZopePageTemplate.py 1.16 => 1.16.2.1 ===
             except TALESError, err:
                 if err.type == 'Unauthorized':
-                    raise err.type, err.value
+                    raise err.type, err.value, err.traceback
                 raise
             if keyset is not None:
                 # Store the result in the cache.