Commit 4435fee3 authored by Hanno Schlichting's avatar Hanno Schlichting

Adjusted tests after policy change by malthe.

parent 56366e66
......@@ -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.
......
......@@ -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'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment