Commit cf123077 authored by 's avatar

Made _verifyObjectPaste willing to acquire the REQUEST

parent be78f449
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
# #
############################################################################## ##############################################################################
__doc__="""Copy interface""" __doc__="""Copy interface"""
__version__='$Revision: 1.46 $'[11:-2] __version__='$Revision: 1.47 $'[11:-2]
import sys, string, Globals, Moniker, tempfile, ExtensionClass import sys, string, Globals, Moniker, tempfile, ExtensionClass
from marshal import loads, dumps from marshal import loads, dumps
...@@ -315,7 +315,7 @@ class CopyContainer(ExtensionClass.Base): ...@@ -315,7 +315,7 @@ class CopyContainer(ExtensionClass.Base):
validClipData=cb_dataValid validClipData=cb_dataValid
def _verifyObjectPaste(self, ob, REQUEST): def _verifyObjectPaste(self, ob, REQUEST=None):
if not hasattr(ob, 'meta_type'): if not hasattr(ob, 'meta_type'):
raise CopyError, MessageDialog( raise CopyError, MessageDialog(
title='Not Supported', title='Not Supported',
...@@ -335,7 +335,10 @@ class CopyContainer(ExtensionClass.Base): ...@@ -335,7 +335,10 @@ class CopyContainer(ExtensionClass.Base):
if d['name']==mt: if d['name']==mt:
method_name=d['action'] method_name=d['action']
break break
if REQUEST is None:
REQUEST=getattr(self, 'REQUEST', None)
if method_name is not None: if method_name is not None:
meth=None meth=None
......
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