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
2f458b29
Commit
2f458b29
authored
Nov 02, 2001
by
matt@zope.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated with Steve Alexander's patch for the DTML validate recursion fix
parent
05209887
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
lib/python/OFS/DTMLMethod.py
lib/python/OFS/DTMLMethod.py
+8
-4
No files found.
lib/python/OFS/DTMLMethod.py
View file @
2f458b29
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""DTML Method objects."""
__version__
=
'$Revision: 1.7
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.7
1
$'
[
11
:
-
2
]
import
History
from
Globals
import
HTML
,
DTMLFile
,
MessageDialog
...
...
@@ -180,7 +180,11 @@ class DTMLMethod(RestrictedDTML, HTML, Acquisition.Implicit, RoleManager,
security
=
getSecurityManager
()
security
.
addContext
(
self
)
if
self
.
__dict__
.
has_key
(
'validate'
):
first_time_through
=
0
else
:
self
.
__dict__
[
'validate'
]
=
security
.
DTMLValidate
first_time_through
=
1
try
:
if
client
is
None
:
...
...
@@ -200,8 +204,8 @@ class DTMLMethod(RestrictedDTML, HTML, Acquisition.Implicit, RoleManager,
finally
:
security
.
removeContext
(
self
)
try
:
del
self
.
__dict__
[
'validate'
]
except
:
pass
if
first_time_through
:
del
self
.
__dict__
[
'validate'
]
have_key
=
RESPONSE
.
headers
.
has_key
if
not
(
have_key
(
'content-type'
)
or
have_key
(
'Content-Type'
)):
...
...
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