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
6d7825dc
Commit
6d7825dc
authored
Jun 18, 1998
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
80b1bb1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
lib/python/OFS/CopySupport.py
lib/python/OFS/CopySupport.py
+11
-4
No files found.
lib/python/OFS/CopySupport.py
View file @
6d7825dc
"""Copy interface"""
__version__
=
'$Revision: 1.1
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
4
$'
[
11
:
-
2
]
import
Globals
,
Moniker
,
rPickle
,
tempfile
from
cPickle
import
loads
,
dumps
...
...
@@ -65,6 +65,7 @@ class CopyContainer:
obj
.
_setId
(
clip_id
)
self
.
_setObject
(
clip_id
,
obj
)
obj
.
_postCopy
(
self
)
if
REQUEST
is
not
None
:
return
self
.
manage_main
(
self
,
REQUEST
,
update_menu
=
1
)
return
''
...
...
@@ -74,10 +75,12 @@ class CopyContainer:
prev_id
=
Moniker
.
absattr
(
obj
.
id
)
obj
.
aq_parent
.
_delObject
(
prev_id
)
obj
=
obj
.
aq_base
obj
=
obj
.
__of__
(
self
)
if
hasattr
(
obj
,
'aq_base'
):
obj
=
obj
.
aq_base
self
.
_setObject
(
clip_id
,
obj
)
obj
=
obj
.
__of__
(
self
)
obj
.
_setId
(
clip_id
)
obj
.
_postMove
(
self
)
if
REQUEST
is
not
None
:
# Remove cookie after a move
REQUEST
[
'RESPONSE'
].
setCookie
(
'clip_data'
,
'deleted'
,
...
...
@@ -111,6 +114,10 @@ class CopySource:
# Called after the copy is finished to accomodate special cases
pass
def
_postMove
(
self
,
container
):
# Called after a move is finished to accomodate special cases
pass
def
_setId
(
self
,
id
):
# Called to set the new id of a copied object.
self
.
id
=
id
...
...
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