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
97dcc2b7
Commit
97dcc2b7
authored
Apr 11, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Several changes related to traversal.
parent
139bf072
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
lib/python/ZPublisher/Publish.py
lib/python/ZPublisher/Publish.py
+13
-10
No files found.
lib/python/ZPublisher/Publish.py
View file @
97dcc2b7
...
...
@@ -518,7 +518,7 @@ Publishing a module using Fast CGI
o Configure the Fast CGI-enabled web server to execute this
file.
$Id: Publish.py,v 1.4
0 1997/04/09 21:06:20
jim Exp $"""
$Id: Publish.py,v 1.4
1 1997/04/11 22:46:26
jim Exp $"""
#'
# Copyright
#
...
...
@@ -572,7 +572,7 @@ $Id: Publish.py,v 1.40 1997/04/09 21:06:20 jim Exp $"""
#
# See end of file for change log.
#
__version__
=
'$Revision: 1.4
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
1
$'
[
11
:
-
2
]
def
main
():
...
...
@@ -587,7 +587,7 @@ from CGIResponse import Response
from
Realm
import
Realm
,
allow_group_composition
from
urllib
import
quote
from
cgi
import
FieldStorage
,
MiniFieldStorage
from
string
import
lower
from
string
import
lower
,
strip
try
:
from
ExtensionClass
import
Base
...
...
@@ -986,14 +986,14 @@ def new_find_object(self, info, path):
URL
=
"%s/%s"
%
(
URL
,
quote
(
entry_name
))
default_realm_name
=
"%s.%s"
%
(
entry_name
,
default_realm_name
)
if
entry_name
:
try
:
traverse
=
object
.
bobo_traverse
try
:
traverse
=
object
.
__bobo_traverse__
except
:
traverse
=
None
if
traverse
is
not
None
:
request
[
'URL'
]
=
URL
subobject
=
traverse
(
request
,
entry_name
)
(
inherited_groups
,
groups
,
realm
,
realm_name
,
doc
)
=
item
_meta_data
(
subobject
,
realm
,
realm_name
,
doc
)
=
attr
_meta_data
(
object
,
subobject
,
entry_name
,
inherited_groups
,
groups
,
realm
,
realm_name
,
default_realm_name
)
else
:
...
...
@@ -1472,7 +1472,7 @@ class Request:
try
:
r
=
self
.
cookies
[
key
]
other
[
key
]
=
v
other
[
key
]
=
r
return
r
except
:
pass
...
...
@@ -1553,7 +1553,7 @@ def parse_cookie(text,
l=len(qparmre.group(1))
else:
if not text or not strip(text): return result
raise
InvalidParameter
, text
raise
"InvalidParameter"
, text
result[name]=value
...
...
@@ -1619,6 +1619,9 @@ def publish_module(module_name,
#
# $Log: Publish.py,v $
# Revision 1.41 1997/04/11 22:46:26 jim
# Several changes related to traversal.
#
# Revision 1.40 1997/04/09 21:06:20 jim
# Changed the way allow groups are composed to avoid unnecessary
# composition.
...
...
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