[Zope3-checkins] SVN: Zope3/trunk/ Fixed bug 489: Template Parse Errors Do Not Report the Filename

Christian Theune ct at gocept.com
Fri Dec 2 14:33:47 EST 2005


Log message for revision 40504:
  Fixed bug 489: Template Parse Errors Do Not Report the Filename
  
  

Changed:
  U   Zope3/trunk/doc/CHANGES.txt
  U   Zope3/trunk/src/zope/pagetemplate/pagetemplatefile.py

-=-
Modified: Zope3/trunk/doc/CHANGES.txt
===================================================================
--- Zope3/trunk/doc/CHANGES.txt	2005-12-02 19:32:54 UTC (rev 40503)
+++ Zope3/trunk/doc/CHANGES.txt	2005-12-02 19:33:47 UTC (rev 40504)
@@ -162,6 +162,8 @@
 
     Bug Fixes
 
+      - Fixed bug 489: Template Parse Errors Do Not Report the Filename
+
       - Fixed bug 485: ServerControlForm.html / Restart, Shutdown does not
         work. This uses twisted's reactor now, implements the countdown
         feature and provides sensible user feedback with a real page.

Modified: Zope3/trunk/src/zope/pagetemplate/pagetemplatefile.py
===================================================================
--- Zope3/trunk/src/zope/pagetemplate/pagetemplatefile.py	2005-12-02 19:32:54 UTC (rev 40503)
+++ Zope3/trunk/src/zope/pagetemplate/pagetemplatefile.py	2005-12-02 19:33:47 UTC (rev 40504)
@@ -104,8 +104,8 @@
         self.pt_edit(text, type_)
         self._cook()
         if self._v_errors:
-            logging.error('PageTemplateFile: Error in template: %s',
-                '\n'.join(self._v_errors))
+            logging.error('PageTemplateFile: Error in template %s: %s',
+                    self.filename, '\n'.join(self._v_errors))
             return
         self._v_last_read = mtime
 



More information about the Zope3-Checkins mailing list