From 3e63771533629059f6e9f125f8c34031e8a6bbea Mon Sep 17 00:00:00 2001
From: Julien Muchembled <jm@nexedi.com>
Date: Thu, 14 Oct 2010 22:40:44 +0000
Subject: [PATCH] Revert r39200 (which does not work with CMF 1.5)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39205 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/patches/FSZSQLMethod.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/product/ERP5Type/patches/FSZSQLMethod.py b/product/ERP5Type/patches/FSZSQLMethod.py
index fa1e209689..4c1044eb7e 100644
--- a/product/ERP5Type/patches/FSZSQLMethod.py
+++ b/product/ERP5Type/patches/FSZSQLMethod.py
@@ -7,14 +7,15 @@
 #
 
 from Products.CMFCore.FSZSQLMethod import FSZSQLMethod
+from Products.CMFCore.utils import expandpath
 from Products.ZSQLMethods.SQL import SQL
 
 def FSZSQLMethod_readFile(self, reparse):
-    file = open(self._filepath, 'r') # not 'rb', as this is a text file!
+    fp = expandpath(self._filepath)
+    file = open(fp, 'r')    # not 'rb', as this is a text file!
     try:
         data = file.read()
-    finally:
-        file.close()
+    finally: file.close()
 
     RESPONSE = {}
     RESPONSE['BODY'] = data
-- 
2.30.9