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
26310178
Commit
26310178
authored
Dec 11, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in seting meth.
parent
7ecd0e09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
lib/python/ZPublisher/Publish.py
lib/python/ZPublisher/Publish.py
+10
-10
No files found.
lib/python/ZPublisher/Publish.py
View file @
26310178
...
...
@@ -84,8 +84,8 @@
##############################################################################
__doc__
=
"""Python Object Publisher -- Publish Python objects on web servers
$Id: Publish.py,v 1.11
3 1998/12/11 20:49:21
jim Exp $"""
__version__
=
'$Revision: 1.11
3
$'
[
11
:
-
2
]
$Id: Publish.py,v 1.11
4 1998/12/11 20:53:46
jim Exp $"""
__version__
=
'$Revision: 1.11
4
$'
[
11
:
-
2
]
import
sys
,
os
,
string
,
cgi
,
regex
from
string
import
lower
,
atoi
,
rfind
,
split
,
strip
,
join
,
upper
,
find
...
...
@@ -149,10 +149,10 @@ class ModulePublisher:
form_has
=
form
.
has_key
other
=
{}
fs
=
FieldStorage
(
fp
=
fp
,
environ
=
environ
,
keep_blank_values
=
1
)
meth
=
None
if
not
hasattr
(
fs
,
'list'
)
or
fs
.
list
is
None
:
form
[
'BODY'
]
=
other
[
'BODY'
]
=
fs
.
value
else
:
meth
=
None
fslist
=
fs
.
list
tuple_items
=
{}
...
...
@@ -215,13 +215,13 @@ class ModulePublisher:
form
[
key
]
=
item
other
[
key
]
=
item
if
meth
:
if
environ
.
has_key
(
'PATH_INFO'
):
path
=
environ
[
'PATH_INFO'
]
while
path
[
-
1
:]
==
'/'
:
path
=
path
[:
-
1
]
else
:
path
=
''
other
[
'PATH_INFO'
]
=
path
=
"%s/%s"
%
(
path
,
meth
)
self
.
_hacked_path
=
1
if
meth
:
if
environ
.
has_key
(
'PATH_INFO'
):
path
=
environ
[
'PATH_INFO'
]
while
path
[
-
1
:]
==
'/'
:
path
=
path
[:
-
1
]
else
:
path
=
''
other
[
'PATH_INFO'
]
=
path
=
"%s/%s"
%
(
path
,
meth
)
self
.
_hacked_path
=
1
# Cookie values should *not* be appended to existing form
# vars with the same name - they are more like default values
...
...
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