[Zope] renaming ids

Maik Jablonski maik.jablonski@uni-bielefeld.de
Tue, 9 Apr 2002 09:24:34 +0200


On Mon, 08 Apr 2002 12:51:01 -0700 "Colyn Brown" <cbrown@ep.newtimes.com>
wrote:

> At last attempt to use renameObjects, I used this:
> <dtml-call "manage_renameObjects(oldId, newId)">
> Which gave me:  ERROR TYPE: AttributeError, ERROR VALUE: 3

hi,

OFS/CopySupport.py says: 

def manage_renameObjects(self,ids=[],new_ids=[],REQUEST)

so you have to submit lists of ids:

<dtml-call "manage_renameObjects(['oldId'], ['newId'])">

keep zoped, maik.