Skip to content

Commit

Permalink
Fix Collector #292 so that PythonScript.write() properly updates bind…
Browse files Browse the repository at this point in the history
…ings.
  • Loading branch information
Evan Simpson committed Oct 8, 2002
1 parent a25b3fb commit 8d6ee96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PythonScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
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
Expand Down Expand Up @@ -413,9 +413,9 @@ def write(self, text):
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
Expand Down

0 comments on commit 8d6ee96

Please sign in to comment.