Skip to content

Commit

Permalink
Add workaround for zopefoundation/Zope#397 / IBrowserPublisher on Bro…
Browse files Browse the repository at this point in the history
…wserView
  • Loading branch information
jaroel committed Mar 5, 2019
1 parent f8574f6 commit c897100
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Products/CMFPlone/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,13 @@ def initialize(context):
# Apply early monkey patches. For these patches, it is too late if we do this
# in the initialize method.
from Products.CMFPlone import earlypatches # noqa

# https://github.com/zopefoundation/Zope/issues/397
import zope.interface
import zope.browserpage.metaconfigure
import zope.publisher.interfaces.browser

zope.interface.classImplementsOnly(
zope.browserpage.metaconfigure.simple,
zope.interface.implementedBy(zope.browserpage.metaconfigure.simple) - zope.publisher.interfaces.browser.IBrowserPublisher
)

0 comments on commit c897100

Please sign in to comment.