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
532858b2
Commit
532858b2
authored
Jun 10, 2003
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put _v_f back in for CMF's FSPythonScripts, for now.
parent
c144bb98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/python/Products/PythonScripts/PythonScript.py
lib/python/Products/PythonScripts/PythonScript.py
+4
-4
No files found.
lib/python/Products/PythonScripts/PythonScript.py
View file @
532858b2
...
...
@@ -17,7 +17,7 @@ This product provides support for Script objects containing restricted
Python code.
"""
__version__
=
'$Revision: 1.4
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
6
$'
[
11
:
-
2
]
import
sys
,
os
,
traceback
,
re
,
marshal
,
new
from
Globals
import
DTMLFile
,
MessageDialog
,
package_home
...
...
@@ -210,7 +210,7 @@ class PythonScript(Script, Historical, Cacheable):
self
.
_compile
()
self
.
_v_change
=
1
elif
self
.
_code
is
None
:
self
.
_v_ft
=
None
self
.
_v_ft
=
self
.
_v_f
=
None
else
:
self
.
_newfun
(
marshal
.
loads
(
self
.
_code
))
...
...
@@ -224,7 +224,7 @@ class PythonScript(Script, Historical, Cacheable):
self
.
warnings
=
tuple
(
r
[
2
])
if
errors
:
self
.
_code
=
None
self
.
_v_ft
=
None
self
.
_v_ft
=
self
.
_v_f
=
None
self
.
_setFuncSignature
((),
(),
0
)
# Fix up syntax errors.
filestring
=
' File "<string>",'
...
...
@@ -255,7 +255,7 @@ class PythonScript(Script, Historical, Cacheable):
}
l
=
{}
exec
code
in
g
,
l
f
=
l
.
values
()[
0
]
self
.
_v_f
=
f
=
l
.
values
()[
0
]
self
.
_v_ft
=
(
f
.
func_code
,
g
,
f
.
func_defaults
or
())
return
f
...
...
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