[CMF-checkins] CVS: CMF/CMFCore - FSDTMLMethod.py:1.18 FSPageTemplate.py:1.20 FSPropertiesObject.py:1.16 FSZSQLMethod.py:1.4

Tres Seaver tseaver at zope.com
Mon Sep 1 12:59:43 EDT 2003


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

Modified Files:
	FSDTMLMethod.py FSPageTemplate.py FSPropertiesObject.py 
	FSZSQLMethod.py 
Log Message:


  - Collector #185:  open filesystem-based script files in text mode.


=== CMF/CMFCore/FSDTMLMethod.py 1.17 => 1.18 ===
--- CMF/CMFCore/FSDTMLMethod.py:1.17	Mon Sep  1 11:18:34 2003
+++ CMF/CMFCore/FSDTMLMethod.py	Mon Sep  1 11:59:41 2003
@@ -78,7 +78,7 @@
 
     def _readFile(self, reparse):
         fp = expandpath(self._filepath)
-        file = open(fp, 'rb')
+        file = open(fp, 'r')    # not 'rb', as this is a text file!
         try:
             data = file.read()
         finally:


=== CMF/CMFCore/FSPageTemplate.py 1.19 => 1.20 ===
--- CMF/CMFCore/FSPageTemplate.py:1.19	Mon Aug  4 16:05:43 2003
+++ CMF/CMFCore/FSPageTemplate.py	Mon Sep  1 11:59:41 2003
@@ -81,7 +81,7 @@
 
     def _readFile(self, reparse):
         fp = expandpath(self._filepath)
-        file = open(fp, 'rb')
+        file = open(fp, 'r')    # not 'rb', as this is a text file!
         try: 
             data = file.read()
         finally: 


=== CMF/CMFCore/FSPropertiesObject.py 1.15 => 1.16 ===
--- CMF/CMFCore/FSPropertiesObject.py:1.15	Thu Jan 23 09:31:12 2003
+++ CMF/CMFCore/FSPropertiesObject.py	Mon Sep  1 11:59:41 2003
@@ -90,7 +90,7 @@
 
         fp = expandpath(self._filepath)
 
-        file = open(fp, 'rb')
+        file = open(fp, 'r')    # not 'rb', as this is a text file!
         try:
             lines = file.readlines()
         finally:


=== CMF/CMFCore/FSZSQLMethod.py 1.3 => 1.4 ===
--- CMF/CMFCore/FSZSQLMethod.py:1.3	Thu Aug  1 15:05:11 2002
+++ CMF/CMFCore/FSZSQLMethod.py	Mon Sep  1 11:59:41 2003
@@ -72,7 +72,7 @@
 
     def _readFile(self, reparse):
         fp = expandpath(self._filepath)
-        file = open(fp, 'rb')
+        file = open(fp, 'r')    # not 'rb', as this is a text file!
         try:
             data = file.read()
         finally: file.close()




More information about the CMF-checkins mailing list