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
da429ab2
Commit
da429ab2
authored
Jul 14, 1998
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug that allowed special objects to be cut and pasted.
parent
aeb331fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
lib/python/OFS/CopySupport.py
lib/python/OFS/CopySupport.py
+8
-2
No files found.
lib/python/OFS/CopySupport.py
View file @
da429ab2
"""Copy interface"""
"""Copy interface"""
__version__
=
'$Revision: 1.1
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
import
Globals
,
Moniker
,
rPickle
,
tempfile
import
Globals
,
Moniker
,
rPickle
,
tempfile
from
cPickle
import
loads
,
dumps
from
cPickle
import
loads
,
dumps
...
@@ -72,8 +72,14 @@ class CopyContainer:
...
@@ -72,8 +72,14 @@ class CopyContainer:
if
moniker
.
op
==
1
:
if
moniker
.
op
==
1
:
# Move operation
# Move operation
prev_id
=
Moniker
.
absattr
(
obj
.
id
)
prev_id
=
Moniker
.
absattr
(
obj
.
id
)
# Check for special object!
try
:
r
=
obj
.
aq_parent
.
_reserved_names
except
:
r
=
()
if
prev_id
in
special
:
raise
'NotSupported'
,
eNotSupported
obj
.
aq_parent
.
_delObject
(
prev_id
)
obj
.
aq_parent
.
_delObject
(
prev_id
)
if
hasattr
(
obj
,
'aq_base'
):
if
hasattr
(
obj
,
'aq_base'
):
obj
=
obj
.
aq_base
obj
=
obj
.
aq_base
...
...
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