Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
20f70de3
Commit
20f70de3
authored
Oct 08, 2002
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Collector #292 so that PythonScript.write() properly updates bindings.
parent
10f361e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
doc/CHANGES.txt
doc/CHANGES.txt
+2
-0
lib/python/Products/PythonScripts/PythonScript.py
lib/python/Products/PythonScripts/PythonScript.py
+4
-4
No files found.
doc/CHANGES.txt
View file @
20f70de3
...
...
@@ -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
...
...
lib/python/Products/PythonScripts/PythonScript.py
View file @
20f70de3
...
...
@@ -17,7 +17,7 @@ This product provides support for Script objects containing restricted
Python code.
"""
__version__
=
'$Revision: 1.4
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
4
$'
[
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment