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
0ed74630
Commit
0ed74630
authored
Nov 11, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor change to speed form processing slightly.
parent
2a1aa075
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
lib/python/ZPublisher/Publish.py
lib/python/ZPublisher/Publish.py
+8
-4
No files found.
lib/python/ZPublisher/Publish.py
View file @
0ed74630
...
...
@@ -370,7 +370,7 @@ Publishing a module using CGI
containing the module to be published) to the module name in the
cgi-bin directory.
$Id: Publish.py,v 1.6
5 1997/11/11 19:31:18
jim Exp $"""
$Id: Publish.py,v 1.6
6 1997/11/11 19:37:27
jim Exp $"""
#'
# Copyright
#
...
...
@@ -425,7 +425,7 @@ $Id: Publish.py,v 1.65 1997/11/11 19:31:18 jim Exp $"""
# See end of file for change log.
#
##########################################################################
__version__
=
'$Revision: 1.6
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.6
6
$'
[
11
:
-
2
]
def
main
():
...
...
@@ -479,6 +479,7 @@ class ModulePublisher:
except
:
pass
form
=
{}
form_has
=
form
.
has_key
other
=
{}
fs
=
FieldStorage
(
fp
=
fp
,
environ
=
environ
,
keep_blank_values
=
1
)
try
:
fslist
=
fs
.
list
...
...
@@ -524,14 +525,14 @@ class ModulePublisher:
# Filter out special names from form:
if
CGI_name
(
key
)
or
key
[:
5
]
==
'HTTP_'
:
continue
try
:
if
form_has
(
key
)
:
found
=
form
[
key
]
if
type
(
found
)
is
lt
:
found
.
append
(
item
)
else
:
found
=
[
found
,
item
]
form
[
key
]
=
found
other
[
key
]
=
found
e
xcept
:
e
lse
:
if
seqf
:
item
=
[
item
]
form
[
key
]
=
item
other
[
key
]
=
item
...
...
@@ -1366,6 +1367,9 @@ def publish_module(module_name,
#
# $Log: Publish.py,v $
# Revision 1.66 1997/11/11 19:37:27 jim
# Minor change to speed form processing slightly.
#
# Revision 1.65 1997/11/11 19:31:18 jim
# Moved setting of RESPONSE key in REQUEST to be ealier in the process.
#
...
...
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