Commit 20f70de3 authored by Evan Simpson's avatar Evan Simpson

Fix Collector #292 so that PythonScript.write() properly updates bindings.

parent 10f361e5
...@@ -28,6 +28,8 @@ Zope Changes ...@@ -28,6 +28,8 @@ Zope Changes
Bugs Fixed Bugs Fixed
- Collector #292: PythonScript.write() didn't properly refresh bindings.
- Dumb bug in zdaemon fixed in which it would try to kill - Dumb bug in zdaemon fixed in which it would try to kill
process numbers 1, 2, 3, 10, 12, and 15 when it caught a process numbers 1, 2, 3, 10, 12, and 15 when it caught a
signal related to any of these signal numbers. Instead, it signal related to any of these signal numbers. Instead, it
......
...@@ -17,7 +17,7 @@ This product provides support for Script objects containing restricted ...@@ -17,7 +17,7 @@ This product provides support for Script objects containing restricted
Python code. Python code.
""" """
__version__='$Revision: 1.43 $'[11:-2] __version__='$Revision: 1.44 $'[11:-2]
import sys, os, traceback, re, marshal import sys, os, traceback, re, marshal
from Globals import DTMLFile, MessageDialog, package_home from Globals import DTMLFile, MessageDialog, package_home
...@@ -413,9 +413,9 @@ class PythonScript(Script, Historical, Cacheable): ...@@ -413,9 +413,9 @@ class PythonScript(Script, Historical, Cacheable):
if body != self._body: if body != self._body:
self._body = body self._body = body
if bup: if bup:
self._setupBindings(bindmap) self.ZBindings_edit(bindmap)
else:
self._makeFunction() self._makeFunction()
except: except:
LOG(self.meta_type, ERROR, 'write failed', error=sys.exc_info()) LOG(self.meta_type, ERROR, 'write failed', error=sys.exc_info())
raise raise
......
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