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
1c1d9186
Commit
1c1d9186
authored
Jul 18, 1996
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in getting web_objects.
parent
da26c4b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
6 deletions
+27
-6
lib/python/ZPublisher/Publish.py
lib/python/ZPublisher/Publish.py
+27
-6
No files found.
lib/python/ZPublisher/Publish.py
View file @
1c1d9186
...
@@ -444,7 +444,7 @@ Publishing a module using the ILU Requestor (future)
...
@@ -444,7 +444,7 @@ Publishing a module using the ILU Requestor (future)
o Configure the web server to call module_name@server_name with
o Configure the web server to call module_name@server_name with
the requestor.
the requestor.
$Id: Publish.py,v 1.
7 1996/07/11 19:39:07
jfulton Exp $"""
$Id: Publish.py,v 1.
8 1996/07/18 14:59:54
jfulton Exp $"""
#'
#'
# Copyright
# Copyright
#
#
...
@@ -497,6 +497,9 @@ $Id: Publish.py,v 1.7 1996/07/11 19:39:07 jfulton Exp $"""
...
@@ -497,6 +497,9 @@ $Id: Publish.py,v 1.7 1996/07/11 19:39:07 jfulton Exp $"""
# (540) 371-6909
# (540) 371-6909
#
#
# $Log: Publish.py,v $
# $Log: Publish.py,v $
# Revision 1.8 1996/07/18 14:59:54 jfulton
# Fixed bug in getting web_objects.
#
# Revision 1.7 1996/07/11 19:39:07 jfulton
# Revision 1.7 1996/07/11 19:39:07 jfulton
# Fixed bug in new feature: 'AUTHENTICATED_USER'
# Fixed bug in new feature: 'AUTHENTICATED_USER'
#
#
...
@@ -523,7 +526,7 @@ $Id: Publish.py,v 1.7 1996/07/11 19:39:07 jfulton Exp $"""
...
@@ -523,7 +526,7 @@ $Id: Publish.py,v 1.7 1996/07/11 19:39:07 jfulton Exp $"""
#
#
#
#
#
#
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
def
main
():
def
main
():
...
@@ -613,7 +616,7 @@ class ModulePublisher:
...
@@ -613,7 +616,7 @@ class ModulePublisher:
exec
'import %s'
%
module_name
in
dict
exec
'import %s'
%
module_name
in
dict
theModule
=
object
=
dict
[
module_name
]
theModule
=
object
=
dict
[
module_name
]
if
hasattr
(
theModule
,
published
):
if
hasattr
(
theModule
,
published
):
object
=
getattr
(
dict
,
published
)
object
=
getattr
(
theModule
,
published
)
else
:
else
:
object
=
theModule
object
=
theModule
published
=
None
published
=
None
...
@@ -635,9 +638,27 @@ class ModulePublisher:
...
@@ -635,9 +638,27 @@ class ModulePublisher:
path
=
(
string
.
strip
(
self
.
env
(
'PATH_INFO'
))
or
'/'
)[
1
:]
path
=
(
string
.
strip
(
self
.
env
(
'PATH_INFO'
))
or
'/'
)[
1
:]
path
=
string
.
splitfields
(
path
,
'/'
)
path
=
string
.
splitfields
(
path
,
'/'
)
while
path
and
not
path
[
0
]:
path
=
path
[
1
:]
while
path
and
not
path
[
0
]:
path
=
path
[
1
:]
# Make help the default, if nothing is specified:
# Get default doc:
if
not
path
:
path
=
[
'help'
]
try
:
doc
=
object
.
__doc__
except
:
try
:
doc
=
object
[
'__doc__'
]
except
:
doc
=
None
# Get default object if no path was specified:
if
not
path
:
for
entry_name
in
'index_html'
,
'index.html'
:
try
:
if
hasattr
(
object
,
entry_name
):
path
=
[
entry_name
]
break
except
:
pass
try
:
if
object
.
has_key
(
entry_name
):
path
=
[
entry_name
]
break
except
:
pass
if
not
path
:
path
=
[
'help'
]
while
path
:
while
path
:
entry_name
,
path
,
groups
=
path
[
0
],
path
[
1
:],
None
entry_name
,
path
,
groups
=
path
[
0
],
path
[
1
:],
None
...
...
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