[Zope-CMF] Python: trying to copy files

Ryan P. de Vega rpd4972@hbu.edu
Thu, 25 Jul 2002 16:19:13 -0500


schubbe@web.de writes:
>This seems to be a permission problem. Is that user able to paste the 
>object into 'Test' by hand?
<-- Answer: Yes

I thought that you might be on to something ... so I gave that user full
permission temporarily.  Still a no go.  :( 

REQUEST=context.REQUEST
if REQUEST.has_key('ids'):
  tmpObj = context.manage_copyObjects(REQUEST['ids'])
  context.portal_url.getPortalObject().TEST.manage_pasteObjects(tmpObj)
  return REQUEST.RESPONSE.redirect(context.absolute_url() +
'/folder_contents?portal_status_message=Item(s)+Published.')


Like this????  All I have to put is TEST (the name of my folder).  I don't
have to define TEST or do any other fancy stuff? - By the way I tried that
stuff too.

Ryan