manage_pasteObjects question
I am trying to do a manage_cutObjects in one script and then a manage_pasteObjects. When I execute this line from my pasteObjects python script: context.manage_pasteObjects(cb_copy_data=context.cb_dataItems(),REQUEST=req[ '__cp']) I get a message back: "The data in the clipboard could not be read, possibly due to cookie data being truncated by your web browser. Try copying fewer objects." I'm not sure why this happens. This doesn't happen from the ZMI so it's something to do with how I'm calling context.manage_pasteObjects in the above snippet. I also had my pasteObjects script return the clipboard data: print context.cb_dataItems() return printed which returns: [<cmsPage at /cmstest/tomspage3.shtml>] So, I know I've got clipboard data but for some reason, manage_pasteObjects thinks I don't and raises eInvalid on line 143 of OFS.CopySupport.py. Any ideas? Thanks, Tom Palermo Senior Web Developer Constella Group, LLC
Palermo, Tom wrote at 2006-3-7 16:13 -0500:
I am trying to do a manage_cutObjects in one script and then a manage_pasteObjects.
Usually, this looks like: obj_info = XXX.manage_cutObjects(...) YYY.manage_pasteObjects(obj_info)
When I execute this line from my pasteObjects python script: context.manage_pasteObjects(cb_copy_data=context.cb_dataItems(),REQUEST=req[ '__cp'])
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
participants (2)
-
Dieter Maurer -
Palermo, Tom