Always import ObjectCreatedEvent from zope.lifecycleevent.

svn path=/plone.app.discussion/trunk/; revision=46006
This commit is contained in:
Timo Stollenwerk 2010-11-28 12:01:27 +00:00
parent ac4a64f55d
commit 3b31ac1602

View File

@ -38,10 +38,11 @@ from Products.CMFPlone.interfaces import IPloneSiteRoot, INonStructuralFolder
from zope.container.contained import ContainerModifiedEvent from zope.container.contained import ContainerModifiedEvent
from zope.lifecycleevent import ObjectCreatedEvent
try: try:
# Plone 4 # Plone 4
from zope.lifecycleevent import ObjectAddedEvent from zope.lifecycleevent import ObjectAddedEvent
from zope.lifecycleevent import ObjectCreatedEvent
from zope.lifecycleevent import ObjectRemovedEvent from zope.lifecycleevent import ObjectRemovedEvent
except ImportError: # pragma: no cover except ImportError: # pragma: no cover
# Plone 3.x # Plone 3.x