On Mon, Jul 23, 2001 at 07:29:04PM +0200, Dirk Schneider wrote:
I am looking for a way to change the id's of multiple objects by a method. I have a DTML-Document that is filled with objects (paragraphs) by <dtml-in>. What I want to do is to be able to insert a new object by a web interface at any place in the list, not only at the end. When I want to insert the new object in the middle, I have to rename all objects that follow. Does someone know a way how to do it?
Use manage_renameObjects(), but beware because there's a bug in it which makes it unable to rename successfully in some 'at-first-glance' conflictuous situations. This bug prevents you from doing batch renames like what you want to do, forcing you to call 'manually' the less powerful manage_renameObject() method (NB: the missing 's'). Anyway, an ugly patch is attached to this message, maybe for the third time, but it seems it was never applied, and the corresponding Collector entry was probably lost somewhere or not read at all :-(( bye, Jerome Alet