projects
/
Plinn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b8d4ab8
)
Maj import
author
Benoît Pin
<benoit.pin@gmail.com>
Tue, 7 May 2013 20:51:51 +0000
(22:51 +0200)
committer
Benoît Pin
<benoit.pin@gmail.com>
Tue, 7 May 2013 20:51:51 +0000
(22:51 +0200)
Folder.py
patch
|
blob
|
history
diff --git
a/Folder.py
b/Folder.py
index
15423a7
..
0d395be
100644
(file)
--- 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
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
from OFS.event import ObjectClonedEvent
from OFS.event import ObjectWillBeMovedEvent
from zope.component.factory import Factory