context.manage_renameObject(oldid, newid) should be ok. (theres manage_renameObject() and manage_renameObjects(), see lib/python/OFS/CopySupport.py) cant say which permission you need though... douwe@oberon.nl wrote:
<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
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )