Always import ObjectCreatedEvent from zope.lifecycleevent.
svn path=/plone.app.discussion/trunk/; revision=46006
This commit is contained in:
parent
ac4a64f55d
commit
3b31ac1602
@ -38,10 +38,11 @@ from Products.CMFPlone.interfaces import IPloneSiteRoot, INonStructuralFolder
|
||||
|
||||
from zope.container.contained import ContainerModifiedEvent
|
||||
|
||||
from zope.lifecycleevent import ObjectCreatedEvent
|
||||
|
||||
try:
|
||||
# Plone 4
|
||||
from zope.lifecycleevent import ObjectAddedEvent
|
||||
from zope.lifecycleevent import ObjectCreatedEvent
|
||||
from zope.lifecycleevent import ObjectRemovedEvent
|
||||
except ImportError: # pragma: no cover
|
||||
# Plone 3.x
|
||||
|
Loading…
Reference in New Issue
Block a user