From 7b214c44a658439ccb762ca0e0467c1196828e2b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Tue, 7 May 2013 22:51:51 +0200 Subject: [PATCH 1/1] Maj import --- Folder.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Folder.py b/Folder.py index 15423a7..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 -- 2.20.1