[CMF-checkins] CVS: Products/CMFCore - FSPageTemplate.py:1.28

Florent Guillaume fg at nuxeo.com
Thu Oct 7 08:01:02 EDT 2004


Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv13479

Modified Files:
	FSPageTemplate.py 
Log Message:
Removed stupid code that actually hides tracebacks in development mode.


=== Products/CMFCore/FSPageTemplate.py 1.27 => 1.28 ===
--- Products/CMFCore/FSPageTemplate.py:1.27	Fri Sep  3 13:57:50 2004
+++ Products/CMFCore/FSPageTemplate.py	Thu Oct  7 08:01:02 2004
@@ -116,26 +116,12 @@
 
     def pt_render(self, source=0, extra_context={}):
         self._updateFromFS()  # Make sure the template has been loaded.
-        try:
-            result = FSPageTemplate.inheritedAttribute('pt_render')(
-                                    self, source, extra_context
-                                    )
-            if not source:
-                _setCacheHeaders(self, extra_context)
-            return result
-
-        except RuntimeError:
-            if Globals.DevelopmentMode:
-                err = FSPageTemplate.inheritedAttribute( 'pt_errors' )( self )
-                if not err:
-                    err = sys.exc_info()
-                err_type = err[0]
-                err_msg = '<pre>%s</pre>' % str(err[1]).replace("\'", "'")
-                msg = 'FS Page Template %s has errors: %s.<br>%s' % (
-                    self.id, err_type, html_quote(err_msg) )
-                raise RuntimeError, msg
-            else:
-                raise
+        result = FSPageTemplate.inheritedAttribute('pt_render')(
+                                self, source, extra_context
+                                )
+        if not source:
+            _setCacheHeaders(self, extra_context)
+        return result
 
     security.declareProtected(ViewManagementScreens, 'pt_source_file')
     def pt_source_file(self):



More information about the CMF-checkins mailing list