Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
ef20ae0f
Commit
ef20ae0f
authored
Nov 28, 2005
by
Florent Guillaume
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ObjectCopiedEvent with an 'original' parameter.
parent
06bb5ef8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
lib/python/OFS/CopySupport.py
lib/python/OFS/CopySupport.py
+4
-3
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+0
-1
lib/python/OFS/OrderSupport.py
lib/python/OFS/OrderSupport.py
+0
-1
No files found.
lib/python/OFS/CopySupport.py
View file @
ef20ae0f
...
...
@@ -33,7 +33,6 @@ from zope.interface import implements
from
zope.event
import
notify
from
zope.app.event.objectevent
import
ObjectCopiedEvent
from
zope.app.container.contained
import
ObjectMovedEvent
import
Products.Five
# BBB: until Zope 3.2 >= r40368 is stiched in
from
zope.app.container.contained
import
notifyContainerModified
from
OFS.event
import
ObjectWillBeMovedEvent
from
OFS.event
import
ObjectClonedEvent
...
...
@@ -214,9 +213,10 @@ class CopyContainer(ExtensionClass.Base):
id
=
self
.
_get_id
(
orig_id
)
result
.
append
({
'id'
:
orig_id
,
'new_id'
:
id
})
orig_ob
=
ob
ob
=
ob
.
_getCopy
(
self
)
ob
.
_setId
(
id
)
notify
(
ObjectCopiedEvent
(
ob
))
notify
(
ObjectCopiedEvent
(
ob
,
orig_ob
))
self
.
_setObject
(
id
,
ob
)
ob
=
self
.
_getOb
(
id
)
...
...
@@ -385,9 +385,10 @@ class CopyContainer(ExtensionClass.Base):
message
=
sys
.
exc_info
()[
1
],
action
=
'manage_main'
)
orig_ob
=
ob
ob
=
ob
.
_getCopy
(
self
)
ob
.
_setId
(
id
)
notify
(
ObjectCopiedEvent
(
ob
))
notify
(
ObjectCopiedEvent
(
ob
,
orig_ob
))
self
.
_setObject
(
id
,
ob
)
ob
=
self
.
_getOb
(
id
)
...
...
lib/python/OFS/ObjectManager.py
View file @
ef20ae0f
...
...
@@ -46,7 +46,6 @@ from Traversable import Traversable
from
zope.event
import
notify
from
zope.app.container.contained
import
ObjectAddedEvent
from
zope.app.container.contained
import
ObjectRemovedEvent
import
Products.Five
# BBB: until Zope 3.2 >= r40368 is stiched in
from
zope.app.container.contained
import
notifyContainerModified
from
OFS.event
import
ObjectWillBeAddedEvent
from
OFS.event
import
ObjectWillBeRemovedEvent
...
...
lib/python/OFS/OrderSupport.py
View file @
ef20ae0f
...
...
@@ -24,7 +24,6 @@ from Acquisition import aq_base
from
DocumentTemplate.sequence
import
sort
from
Globals
import
InitializeClass
from
zope.interface
import
implements
import
Products.Five
# BBB: until Zope 3.2 >= r40368 is stiched in
from
zope.app.container.contained
import
notifyContainerModified
from
interfaces
import
IOrderedContainer
as
z3IOrderedContainer
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment