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
f9074fa3
Commit
f9074fa3
authored
Mar 26, 2006
by
Philipp von Weitershausen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge philikon-fix-lookup-priorities and add changelog entry
parent
b45af386
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
0 deletions
+21
-0
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/Testing/ZopeTestCase/utils.py
lib/python/Testing/ZopeTestCase/utils.py
+6
-0
lib/python/ZPublisher/Publish.py
lib/python/ZPublisher/Publish.py
+6
-0
lib/python/ZPublisher/Test.py
lib/python/ZPublisher/Test.py
+6
-0
No files found.
doc/CHANGES.txt
View file @
f9074fa3
...
...
@@ -25,6 +25,9 @@ Zope Changes
- Collector #2037: fixed broken ACTUAL_URL for '/'
- Put the default skin interface on the request once it is
created, both in ZPublisher and ZopeTestCase.
Zope 2.9.1 (2006/02/25)
Bugs fixed
...
...
lib/python/Testing/ZopeTestCase/utils.py
View file @
f9074fa3
...
...
@@ -138,6 +138,12 @@ def makerequest(app, stdout=sys.stdout):
request
=
Request
(
sys
.
stdin
,
environ
,
response
)
request
.
_steps
=
[
'noobject'
]
# Fake a published object
request
[
'ACTUAL_URL'
]
=
request
.
get
(
'URL'
)
# Zope 2.7.4
# set Zope3-style default skin so that the request is usable for
# Zope3-style view look-ups
from
zope.app.publication.browser
import
setDefaultSkin
setDefaultSkin
(
request
)
return
app
.
__of__
(
RequestContainer
(
REQUEST
=
request
))
...
...
lib/python/ZPublisher/Publish.py
View file @
f9074fa3
...
...
@@ -21,6 +21,7 @@ from Request import Request
from
maybe_lock
import
allocate_lock
from
mapply
import
mapply
from
zExceptions
import
Redirect
from
zope.app.publication.browser
import
setDefaultSkin
class
Retry
(
Exception
):
"""Raise this to retry a request
...
...
@@ -185,6 +186,11 @@ def publish_module_standard(module_name,
if
request
is
None
:
request
=
Request
(
stdin
,
environ
,
response
)
# make sure that the request we hand over has the
# default layer/skin set on it; subsequent code that
# wants to look up views will likely depend on it
setDefaultSkin
(
request
)
response
=
publish
(
request
,
module_name
,
after_list
,
debug
=
debug
)
except
SystemExit
,
v
:
must_die
=
sys
.
exc_info
()
...
...
lib/python/ZPublisher/Test.py
View file @
f9074fa3
...
...
@@ -189,6 +189,12 @@ def publish_module(module_name,
stdout
=
response
.
stdout
if
request
is
None
:
request
=
Request
(
stdin
,
environ
,
response
)
# make sure that the request we hand over has the
# default layer/skin set on it; subsequent code that
# wants to look up views will likely depend on it
from
zope.app.publication.browser
import
setDefaultSkin
setDefaultSkin
(
request
)
for
k
,
v
in
extra
.
items
():
request
[
k
]
=
v
response
=
publish
(
request
,
module_name
,
after_list
,
debug
=
debug
)
except
SystemExit
,
v
:
...
...
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