<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Palermo, Tom wrote:
<blockquote
 cite="mid4E2885D0FE18D64E9DA136C82BB7A773021091AF@bth-exchange.constellagroup.com"
 type="cite">
  <pre wrap="">I'm trying to do the cut in one script and the paste in another script. It's
my understanding that REQUEST is an optional parameter to
manage_cutObjects(). Passing REQUEST will set a cookie, __cp. __cp is the
clipboard data. Later when I try to do manage_pasteObjects() from another
script, I always get a "cookie data is truncated" message regardless of how
I try to pass in the clipboard data. I should be able to just do:
context.manage_pasteObjects(context.cb_dataItems()) 

That doesn't work. I still get the "cookie data is truncated" message. I get
the same message if I do:
context.manage_pasteObjects(context.REQUEST) 

I know that there are, in fact, objects on the clipboard because I can just
do:
print context.cb_dataItems()
return printed

I'm not sure what I'm doing wrong. It seems like you can have cut and paste
happen in separate scripts. Is that not true?

Thanks,
Tom

-----Original Message-----
From: Dieter Maurer [<a class="moz-txt-link-freetext" href="mailto:dieter@handshake.de">mailto:dieter@handshake.de</a>] 
Sent: Wednesday, March 08, 2006 2:07 PM
To: Palermo, Tom
Cc: '<a class="moz-txt-link-abbreviated" href="mailto:zope@zope.org">zope@zope.org</a>'
Subject: Re: [Zope] manage_pasteObjects question

Palermo, Tom wrote at 2006-3-7 16:13 -0500:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I am trying to do a manage_cutObjects in one script and then a 
manage_pasteObjects.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Usually, this looks like:

         obj_info = XXX.manage_cutObjects(...)
         YYY.manage_pasteObjects(obj_info)

  </pre>
  <blockquote type="cite">
    <pre wrap="">When I execute this line from my pasteObjects python
script:
context.manage_pasteObjects(cb_copy_data=context.cb_dataItems(),REQUEST
=req[
'__cp'])
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Do not know, why in hell you pass in a crippled request...

  You should be aware that "req['__cp']" is not a request object...

--
Dieter
__</pre>
</blockquote>
Tom,<br>
<br>
You didnt respond to Dieter's remarks .... so its unclear where to go
with this.<br>
<br>
You coded:<br>
<div><big><span class="155430421-07032006"><font size="2"><big>&nbsp;&nbsp;&nbsp;
context.manage_pasteObjects(cb_copy_data=context.cb_dataItems(),REQUEST=req['__cp'])<br>
<br>
What is the last parameter doing?&nbsp; REQUEST=req['__cp'] ?&nbsp; The
manage_pastObjects expects a REQUEST object, e.g.
REQUEST=context.REQUEST.<br>
<br>
Did you try this?&nbsp;&nbsp; <br>
<br>
David<br>
<br>
<br>
<br>
<br>
</big></font></span></big></div>
<div>
<pre><span class="155430421-07032006"></span></pre>
</div>
</body>
</html>