Re: [Zope] manage_cutObjects/manage_pasteObjects problem ...

2008-08-02 Thread Dieter Maurer
Giampiero Benvenuti wrote at 2008-7-25 15:20 +0200: ... it should be something like this: ... src=context.your_cut_context[obj_id] context.your_cut_context.manage_cutObjects([src]) manage_cutObjects takes a sequence of ids (or a single id) as input (not the real objects).

Re: [Zope] manage_cutObjects/manage_pasteObjects problem ...

2008-07-30 Thread Paul Winkler
Just a quick note: On Fri, Jul 25, 2008 at 03:20:23PM +0200, Giampiero Benvenuti wrote: I think the problem is your 4th line: copy_info = obj_parent.manage_cutObjects((context.getId())) copy_info should be the object you want to cut it should be something like this: ...

Re: [Zope] manage_cutObjects/manage_pasteObjects problem ...

2008-07-27 Thread Dieter Maurer
Ajay Deshpande wrote at 2008-7-23 10:36 +0530: Ive been trying to cut objects from one context and paste them into another using a script python. But I get a CopyError when I try doing this. This is my code snippet and the traceback ... Snippet... ... obj = context.restrictedTraverse(path)

Re: [Zope] manage_cutObjects/manage_pasteObjects problem ...

2008-07-25 Thread Giampiero Benvenuti
On Jul 23, 2008, at 7:06 AM, Ajay Deshpande wrote: Hi all: Ive been trying to cut objects from one context and paste them into another using a script python. But I get a CopyError when I try doing this. This is my code snippet and the traceback ... Snippet... ... obj =