Commit 3e637715 authored by Julien Muchembled's avatar Julien Muchembled

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
parent 76e3cf09
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment