[CMF-checkins] CVS: CMF/CMFCore - FSFile.py:1.9

Kapil Thangavelu hazmat at objectrealms.net
Tue Mar 30 15:54:24 EST 2004


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

Modified Files:
	FSFile.py 
Log Message:
 - fix str( ) on an fs file



=== CMF/CMFCore/FSFile.py 1.8 => 1.9 ===
--- CMF/CMFCore/FSFile.py:1.8	Sun Dec  7 15:44:05 2003
+++ CMF/CMFCore/FSFile.py	Tue Mar 30 15:53:50 2004
@@ -80,7 +80,9 @@
 
     #### The following is mainly taken from OFS/File.py ###
 
-    __str__ = File.__str__.im_func
+    def __str__(self):
+        self._updateFromFS()
+        return str( self._readFile( 0 ) )
 
     security.declareProtected(View, 'index_html')
     def index_html(self, REQUEST, RESPONSE):




More information about the CMF-checkins mailing list