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
Bugs Fixed
- Collector #292: PythonScript.write() didn't properly refresh bindings.
- 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
signal related to any of these signal numbers. Instead, it
......
......@@ -17,7 +17,7 @@ This product provides support for Script objects containing restricted
Python code.
"""
__version__='$Revision: 1.43 $'[11:-2]
__version__='$Revision: 1.44 $'[11:-2]
import sys, os, traceback, re, marshal
from Globals import DTMLFile, MessageDialog, package_home
......@@ -413,9 +413,9 @@ class PythonScript(Script, Historical, Cacheable):
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
......
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