Skip to content

Commit

Permalink
[dev] added conditional import for some version of Products.CMFPlone
Browse files Browse the repository at this point in the history
  • Loading branch information
eikichi18 committed Sep 28, 2018
1 parent 9b9143d commit 6fed2ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plone/app/discussion/browser/controlpanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
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
Expand All @@ -17,6 +16,11 @@
from zope.component import queryUtility
from zope.component.hooks import getSite

try:
from Products.CMFPlone.interfaces.controlpanel import IConfigurationChangedEvent # noqa: E501
except ImportError:
from Products.CMFPlone.interfaces import IConfigurationChangedEvent # noqa: E501


class DiscussionSettingsEditForm(controlpanel.RegistryEditForm):
"""Discussion settings form.
Expand Down

0 comments on commit 6fed2ad

Please sign in to comment.