Commit 51cc6d9e authored by Yoshinori Okuji's avatar Yoshinori Okuji

Patch FSPythonScript to never compile with _write.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17403 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6ad08a94
......@@ -763,6 +763,11 @@ def optimize():
PythonScript_compile(self)
return PythonScript_exec(self, *args)
PythonScript._exec = _exec
from Products.CMFCore.FSPythonScript import FSPythonScript
FSPythonScript_write = FSPythonScript._write
def _write(self, text, compile):
return FSPythonScript_write(self, text, 0)
FSPythonScript._write = _write
optimize()
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