Added comment to try/except on import of IConfigurationChangedEvent
This commit is contained in:
parent
671f0cc796
commit
65b187ea53
@ -16,10 +16,12 @@ from zope.component import getUtility
|
||||
from zope.component import queryUtility
|
||||
from zope.component.hooks import getSite
|
||||
|
||||
# try/except was added because Configuration Changed Event was moved inside the
|
||||
# controlpanel file in the PR #2495 on Products.CMFPlone
|
||||
try:
|
||||
from Products.CMFPlone.interfaces.controlpanel import IConfigurationChangedEvent # noqa: E501
|
||||
except ImportError:
|
||||
from Products.CMFPlone.interfaces import IConfigurationChangedEvent # noqa: E501
|
||||
from Products.CMFPlone.interfaces import IConfigurationChangedEvent
|
||||
|
||||
|
||||
class DiscussionSettingsEditForm(controlpanel.RegistryEditForm):
|
||||
|
Loading…
Reference in New Issue
Block a user