[Zope-Checkins] CVS: Releases/Zope/lib/python/Products/PythonScripts - PythonScript.py:1.44
Evan Simpson
evan@zope.com
Tue, 8 Oct 2002 18:24:33 -0400
Update of /cvs-repository/Releases/Zope/lib/python/Products/PythonScripts
In directory cvs.zope.org:/tmp/cvs-serv23095/lib/python/Products/PythonScripts
Modified Files:
PythonScript.py
Log Message:
Fix Collector #292 so that PythonScript.write() properly updates bindings.
=== Releases/Zope/lib/python/Products/PythonScripts/PythonScript.py 1.43 => 1.44 ===
--- Releases/Zope/lib/python/Products/PythonScripts/PythonScript.py:1.43 Wed Aug 14 18:25:08 2002
+++ Releases/Zope/lib/python/Products/PythonScripts/PythonScript.py Tue Oct 8 18:24:32 2002
@@ -413,9 +413,9 @@
if body != self._body:
self._body = body
if bup:
- self._setupBindings(bindmap)
-
- self._makeFunction()
+ self.ZBindings_edit(bindmap)
+ else:
+ self._makeFunction()
except:
LOG(self.meta_type, ERROR, 'write failed', error=sys.exc_info())
raise