From 76f4f501606b3ba94cb750426a123707661a30d8 Mon Sep 17 00:00:00 2001 From: "Jens W. Klein" Date: Wed, 8 Aug 2018 12:34:22 +0200 Subject: [PATCH] get rid of plone.app.controlpanel dependencies --- CHANGES.rst | 3 +++ plone/app/discussion/browser/controlpanel.py | 2 +- plone/app/discussion/subscribers.zcml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 0a8f3fd..be4873e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -15,6 +15,9 @@ New features: Bug fixes: +- Fix location of controlpanel events. + [jensens] + - Fixed tests when IRichText behavior is used. IRichText -> IRichTextBehavior This is a follow up to `issue 476 `_. diff --git a/plone/app/discussion/browser/controlpanel.py b/plone/app/discussion/browser/controlpanel.py index 3c88ebe..5e904d8 100644 --- a/plone/app/discussion/browser/controlpanel.py +++ b/plone/app/discussion/browser/controlpanel.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from plone.app.controlpanel.interfaces import IConfigurationChangedEvent from plone.app.discussion.interfaces import _ from plone.app.discussion.interfaces import IDiscussionSettings from plone.app.discussion.upgrades import update_registry @@ -7,6 +6,7 @@ from plone.app.registry.browser import controlpanel from plone.registry.interfaces import IRecordModifiedEvent from plone.registry.interfaces import IRegistry from Products.CMFCore.utils import getToolByName +from Products.CMFPlone.interfaces.controlpanel import IConfigurationChangedEvent # noqa: E501 from Products.CMFPlone.interfaces.controlpanel import IMailSchema from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from Products.statusmessages.interfaces import IStatusMessage diff --git a/plone/app/discussion/subscribers.zcml b/plone/app/discussion/subscribers.zcml index 5bb3535..20e1b7f 100644 --- a/plone/app/discussion/subscribers.zcml +++ b/plone/app/discussion/subscribers.zcml @@ -66,7 +66,7 @@