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
4435fee3
Commit
4435fee3
authored
Nov 30, 2008
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjusted tests after policy change by malthe.
parent
56366e66
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
doc/CHANGES.txt
doc/CHANGES.txt
+1
-2
lib/python/Products/Five/browser/tests/aqlegacy.py
lib/python/Products/Five/browser/tests/aqlegacy.py
+3
-6
No files found.
doc/CHANGES.txt
View file @
4435fee3
...
...
@@ -225,8 +225,7 @@ Zope Changes
- After the proper introduction of parent-pointers, it's now
wrong to acquisition-wrap content providers. We will now use
the "classic" content provider expression from Zope
3. [malthe]
the "classic" content provider expression from Zope 3.
- Testing.ZopeTestCase: Remove quota argument from DemoStorage calls in
preparation for ZODB 3.9.
...
...
lib/python/Products/Five/browser/tests/aqlegacy.py
View file @
4435fee3
...
...
@@ -86,14 +86,11 @@ class ExplicitContentProvider(Acquisition.Explicit):
self
.
context
=
context
self
.
request
=
request
self
.
view
=
view
# Normally, a content provider should set __parent__ to view
# or context. This one doesn't do this on purpose to ensure
# it works without.
# A content provider must set __parent__ to view or context.
self
.
__parent__
=
context
def
update
(
self
):
# Make sure that the content provider is acquisition wrapped.
assert
self
.
aq_parent
==
self
.
context
assert
self
.
aq_base
==
self
pass
def
render
(
self
):
return
'Content provider inheriting from Explicit'
...
...
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