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

Tres Seaver tseaver at zope.com
Sat Mar 6 16:55:46 EST 2004


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv30571/CMFCore

Modified Files:
	FSPageTemplate.py 
Log Message:


  - Collector #227:  expose ZPT filename in tracebacks which include
    FSPageTemplates.


=== CMF/CMFCore/FSPageTemplate.py 1.23 => 1.24 ===
--- CMF/CMFCore/FSPageTemplate.py:1.23	Sun Dec  7 15:44:05 2003
+++ CMF/CMFCore/FSPageTemplate.py	Sat Mar  6 16:55:15 2004
@@ -138,6 +138,13 @@
             else:
                 raise
 
+    security.declareProtected(ViewManagementScreens, 'pt_source_file')
+    def pt_source_file(self):
+
+        """ Return a file name to be compiled into the TAL code.
+        """
+        return 'file:%s' % self._filepath
+
     security.declarePrivate( '_ZPT_exec' )
     _ZPT_exec = ZopePageTemplate._exec.im_func
 




More information about the CMF-checkins mailing list