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
ec55950b
Commit
ec55950b
authored
May 30, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed args to _verifyObjectPaste: REQUEST is no longer needed.
parent
10891849
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
lib/python/OFS/CopySupport.py
lib/python/OFS/CopySupport.py
+8
-6
No files found.
lib/python/OFS/CopySupport.py
View file @
ec55950b
...
...
@@ -83,7 +83,7 @@
#
##############################################################################
__doc__
=
"""Copy interface"""
__version__
=
'$Revision: 1.5
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.5
3
$'
[
11
:
-
2
]
import
sys
,
string
,
Globals
,
Moniker
,
tempfile
,
ExtensionClass
from
marshal
import
loads
,
dumps
...
...
@@ -200,7 +200,7 @@ class CopyContainer(ExtensionClass.Base):
m
=
Moniker
.
loadMoniker
(
mdata
)
try
:
ob
=
m
.
bind
(
app
)
except
:
raise
CopyError
,
eNotFound
self
.
_verifyObjectPaste
(
ob
,
REQUEST
)
self
.
_verifyObjectPaste
(
ob
)
oblist
.
append
(
ob
)
if
op
==
0
:
...
...
@@ -275,7 +275,7 @@ class CopyContainer(ExtensionClass.Base):
ob
=
self
.
_getOb
(
id
)
if
not
ob
.
cb_isMoveable
():
raise
CopyError
,
eNotSupported
%
id
self
.
_verifyObjectPaste
(
ob
,
REQUEST
)
self
.
_verifyObjectPaste
(
ob
)
try
:
ob
.
_notifyOfCopyTo
(
self
,
op
=
1
)
except
:
raise
CopyError
,
MessageDialog
(
title
=
'Rename Error'
,
...
...
@@ -306,7 +306,7 @@ class CopyContainer(ExtensionClass.Base):
title
=
'Invalid Id'
,
message
=
sys
.
exc_info
()[
1
],
action
=
'manage_main'
)
self
.
_verifyObjectPaste
(
ob
,
REQUEST
)
self
.
_verifyObjectPaste
(
ob
)
try
:
ob
.
_notifyOfCopyTo
(
self
,
op
=
0
)
except
:
raise
CopyError
,
MessageDialog
(
title
=
'Clone Error'
,
...
...
@@ -340,6 +340,8 @@ class CopyContainer(ExtensionClass.Base):
validClipData
=
cb_dataValid
def
_verifyObjectPaste
(
self
,
ob
,
REQUEST
=
None
):
# Note that REQUEST is no longer needed - it is kept in the
# argument list for backward compatibility only.
if
not
hasattr
(
ob
,
'meta_type'
):
raise
CopyError
,
MessageDialog
(
title
=
'Not Supported'
,
...
...
@@ -360,8 +362,8 @@ class CopyContainer(ExtensionClass.Base):
method_name
=
d
[
'action'
]
break
if
REQUEST
is
None
:
REQUEST
=
getattr
(
self
,
'REQUEST'
,
None
)
#
if REQUEST is None:
#
REQUEST=getattr(self, 'REQUEST', None)
if
method_name
is
not
None
:
meth
=
self
.
unrestrictedTraverse
(
method_name
)
...
...
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