Commit da429ab2 authored by 's avatar

Fixed bug that allowed special objects to be cut and pasted.

parent aeb331fa
"""Copy interface""" """Copy interface"""
__version__='$Revision: 1.14 $'[11:-2] __version__='$Revision: 1.15 $'[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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment