[Erp5-report] r39200 jm - /erp5/trunk/products/ERP5Type/patches/FSZSQLMethod.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Oct 14 20:45:27 CEST 2010


Author: jm
Date: Thu Oct 14 20:45:26 2010
New Revision: 39200

URL: http://svn.erp5.org?rev=39200&view=rev
Log:
Stop using deprecated expandpath in FSZSQLMethod patch (like in CMF 2.2)

Modified:
    erp5/trunk/products/ERP5Type/patches/FSZSQLMethod.py

Modified: erp5/trunk/products/ERP5Type/patches/FSZSQLMethod.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/FSZSQLMethod.py?rev=39200&r1=39199&r2=39200&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/FSZSQLMethod.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/patches/FSZSQLMethod.py [utf8] Thu Oct 14 20:45:26 2010
@@ -7,15 +7,14 @@
 #
 
 from Products.CMFCore.FSZSQLMethod import FSZSQLMethod
-from Products.CMFCore.utils import expandpath
 from Products.ZSQLMethods.SQL import SQL
 
 def FSZSQLMethod_readFile(self, reparse):
-    fp = expandpath(self._filepath)
-    file = open(fp, 'r')    # not 'rb', as this is a text file!
+    file = open(self._filepath, 'r') # not 'rb', as this is a text file!
     try:
         data = file.read()
-    finally: file.close()
+    finally:
+        file.close()
 
     RESPONSE = {}
     RESPONSE['BODY'] = data




More information about the Erp5-report mailing list