From df09fc2d5901cdfe991b784c51d77b3814b89bac Mon Sep 17 00:00:00 2001 From: "Jens W. Klein" Date: Fri, 12 Apr 2019 11:40:53 +0200 Subject: [PATCH] fix import with deprecation warning --- news/153.bugfix | 1 + plone/app/discussion/interfaces.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 news/153.bugfix diff --git a/news/153.bugfix b/news/153.bugfix new file mode 100644 index 0000000..bf2a486 --- /dev/null +++ b/news/153.bugfix @@ -0,0 +1 @@ +Fixed DeprecationWarning for ObjectEvent. [jensens] \ No newline at end of file diff --git a/plone/app/discussion/interfaces.py b/plone/app/discussion/interfaces.py index c7f343e..d7065e8 100644 --- a/plone/app/discussion/interfaces.py +++ b/plone/app/discussion/interfaces.py @@ -6,10 +6,10 @@ from Products.CMFCore.interfaces import ISiteRoot from Products.CMFCore.utils import getToolByName from zope import schema from zope.component import getUtility -from zope.component.interfaces import IObjectEvent from zope.interface import Interface from zope.interface import Invalid from zope.interface.common.mapping import IIterableMapping +from zope.interface.interfaces import IObjectEvent def isEmail(value):