[Zope-Checkins] CVS: Releases/Zope/lib/python/Products/PythonScripts - PythonScript.py:1.43.6.3
Evan Simpson
evan@zope.com
Tue, 10 Jun 2003 18:08:38 -0400
Update of /cvs-repository/Releases/Zope/lib/python/Products/PythonScripts
In directory cvs.zope.org:/tmp/cvs-serv23226/lib/python/Products/PythonScripts
Modified Files:
Tag: Zope-2_6-branch
PythonScript.py
Log Message:
Put _v_f back in for CMF's FSPythonScripts, for now.
=== Releases/Zope/lib/python/Products/PythonScripts/PythonScript.py 1.43.6.2 => 1.43.6.3 ===
--- Releases/Zope/lib/python/Products/PythonScripts/PythonScript.py:1.43.6.2 Tue Jun 10 17:14:36 2003
+++ Releases/Zope/lib/python/Products/PythonScripts/PythonScript.py Tue Jun 10 18:08:37 2003
@@ -210,7 +210,7 @@
self._compile()
self._v_change = 1
elif self._code is None:
- self._v_ft = None
+ self._v_ft = self._v_f = None
else:
self._newfun(marshal.loads(self._code))
@@ -224,7 +224,7 @@
self.warnings = tuple(r[2])
if errors:
self._code = None
- self._v_ft = None
+ self._v_ft = self._v_f = None
self._setFuncSignature((), (), 0)
# Fix up syntax errors.
filestring = ' File "<string>",'
@@ -255,7 +255,7 @@
}
l = {}
exec code in g, l
- f = l.values()[0]
+ self._v_f = f = l.values()[0]
self._v_ft = (f.func_code, g, f.func_defaults or ())
return f