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
26a2f5ad
Commit
26a2f5ad
authored
Feb 14, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added logic to make REQUEST and RESPONSE available for acquisition
by published objects.
parent
792edf14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
lib/python/ZPublisher/Publish.py
lib/python/ZPublisher/Publish.py
+26
-3
No files found.
lib/python/ZPublisher/Publish.py
View file @
26a2f5ad
...
...
@@ -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.3
4 1997/02/07 18:42
:34 jim Exp $"""
$Id: Publish.py,v 1.3
5 1997/02/14 21:53
:34 jim Exp $"""
#'
# Copyright
#
...
...
@@ -572,7 +572,7 @@ $Id: Publish.py,v 1.34 1997/02/07 18:42:34 jim Exp $"""
#
# See end of file for change log.
#
__version__
=
'$Revision: 1.3
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
5
$'
[
11
:
-
2
]
def
main
():
...
...
@@ -588,6 +588,16 @@ from Realm import Realm, allow_group_composition
from
cgi
import
FieldStorage
,
MiniFieldStorage
try
:
from
ExtensionClass
import
Base
class
RequestContainer
(
Base
):
def
__init__
(
self
,
**
kw
):
for
k
,
v
in
kw
.
items
():
self
.
__dict__
[
k
]
=
v
except
:
class
RequestContainer
:
def
__init__
(
self
,
**
kw
):
for
k
,
v
in
kw
.
items
():
self
.
__dict__
[
k
]
=
v
class
ModulePublisher
:
...
...
@@ -763,8 +773,17 @@ class ModulePublisher:
except
:
setstate
=
None
if
setstate
:
setstate
(
object
)
topobject
=
object
while
path
:
# sad_pathetic_persistence_hack(object)
if
object
is
not
topobject
and
topobject
is
not
None
:
topobject
=
None
try
:
# Try to bind the top-level object to the request
object
=
object
.
__of__
(
RequestContainer
(
REQUEST
=
self
.
request
,
RESPONSE
=
self
.
response
))
except
:
pass
entry_name
,
path
=
path
[
0
],
path
[
1
:]
URL
=
"%s/%s"
%
(
URL
,
entry_name
)
default_realm_name
=
"%s.%s"
%
(
entry_name
,
default_realm_name
)
...
...
@@ -1407,6 +1426,10 @@ def publish_module(module_name,
#
# $Log: Publish.py,v $
# Revision 1.35 1997/02/14 21:53:34 jim
# Added logic to make REQUEST and RESPONSE available for acquisition
# by published objects.
#
# Revision 1.34 1997/02/07 18:42:34 jim
# Changed to use standard cgi module. Yey!!!
# This incorprates fixed binary data handling and get's rid of newcgi.
...
...
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