X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/31f40c1330738960568a49dac57def289415db5d..fe7ee9d9e1acd68dfd3a0b5c71c7ac1b18e1c08b:/Folder.py?ds=sidebyside diff --git a/Folder.py b/Folder.py index 866f630..0d395be 100644 --- a/Folder.py +++ b/Folder.py @@ -35,8 +35,13 @@ from ZODB.POSException import ConflictError import OFS.subscribers from zope.event import notify from zope.lifecycleevent import ObjectCopiedEvent -from zope.app.container.contained import ObjectMovedEvent -from zope.app.container.contained import notifyContainerModified +try : + from zope.app.container.contained import notifyContainerModified + from zope.app.container.contained import ObjectMovedEvent +except ImportError : + ## Zope-2.13 compat + from zope.container.contained import notifyContainerModified + from zope.container.contained import ObjectMovedEvent from OFS.event import ObjectClonedEvent from OFS.event import ObjectWillBeMovedEvent from zope.component.factory import Factory