[Zope] manage_renameObject

douwe@oberon.nl douwe@oberon.nl
Tue, 16 Jul 2002 16:03:00 +0200


> <python parameter-list:oldid,newid,tittel,contents>
> #context.manage_addProduct['OFSP'].manage_addFile(newid,file=conte
nts,title=tittel)
> #context.manage_addProduct['OFSP'].manage_delObjects(oldid) 
> 
> context.manage_renameObject(, newid, REQUEST)
almost:
     parent.manage_renameObjects( ids=[oldlid], new_ids=[newid] )

manage_renameObjects expects a list of objects. You don't pass the REQUEST
object, unless you want ZOPE to redirect you to the manage screen.

Douwe