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
7467c513
Commit
7467c513
authored
Apr 08, 2006
by
Paul Winkler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backing out smelly fix for 2057, as on the trunk.
parent
cedcc3ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
15 deletions
+1
-15
doc/CHANGES.txt
doc/CHANGES.txt
+0
-3
lib/python/Testing/makerequest.py
lib/python/Testing/makerequest.py
+1
-12
No files found.
doc/CHANGES.txt
View file @
7467c513
...
...
@@ -18,9 +18,6 @@ Zope Changes
Bugs fixed
- Collector #2057: Allow Testing.makerequest to work with
any acquisition-supporting root object, not just Zope2.app.
Formerly, if you did that, getPhysicalPath() was broken.
Zope 2.9.2 (2006/03/27)
...
...
lib/python/Testing/makerequest.py
View file @
7467c513
...
...
@@ -20,8 +20,7 @@ Usage:
app = makerequest.makerequest(Zope2.app())
You can optionally pass stdout to be used by the response,
and an environ mapping to be used in the request.
Defaults are sys.stdout and os.environ.
default is sys.stdout.
If you don't want to start a zope app in your test, you can wrap other
objects, but they must support acquisition and you should only wrap
...
...
@@ -54,14 +53,4 @@ def makerequest(app, stdout=stdout):
setDefaultSkin
(
req
)
requestcontainer
=
RequestContainer
(
REQUEST
=
req
)
# Workaround for collector 2057: ensure that we don't break
# getPhysicalPath if app has that method.
# We could instead fix Traversable.getPhysicalPath() to check for
# existence of p.getPhysicalPath before calling it; but it's such
# a commonly called method that I don't want to impact performance
# for something that AFAICT only affects makerequest() in
# practice.
if
getattr
(
app
,
'getPhysicalPath'
,
None
)
is
not
None
:
requestcontainer
.
getPhysicalPath
=
lambda
:
()
return
app
.
__of__
(
requestcontainer
)
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