[Zope3-Users] Renaming and OrderedContainer

jürgen Kartnaller j.kartnaller at cable.vol.at
Sun Jan 30 08:16:51 EST 2005


Hello all,
I found the following problem when renaming objects :

zope.app.copypastemove.rename uses the ObjectMover to rename an object 
within a container.
There is no problem as long as you are using BTree containers.

If rename is used on an OrderedContainer then the object is moved to the 
end of the list because ObjectMover first adds the object with the new 
name to the container (OrderedContainer puts the new object to the end 
of the list) and then deletes the old name.

To solve this problem a container should have a rename function !

Am I right or did I missed something ?

Jürgen



More information about the Zope3-users mailing list