[Zope-dev] copypastemove.ObjectMover / Bug
Roger Ineichen
r.ineichen at projekt01.ch
Sun Apr 25 07:28:02 EDT 2004
package/class:
zope.app.copypastemove.ObjectMover
I think theres a bug or at least
to less checks in the ObjectMover method
moveableTo().
example that should raise a Error:
The objects in a tree:
root/folder2/folder2_2
if I copy folder2 to folder2_2
with:
mover = IObjectMover(folder2) # or ObjectMover(folder2)
if mover.moveableTo(folder2_2):
mover.moveTo(folder2_2)
the method moveableTo should return False,
otherwise we get a tree like:
root/ ..nothing.. /folder2_2/folder2
But the method moveableTo() checks just
the constraints.
Perhaps we can check if the path of the moveable
object is somewhere in the path of the target.
Regards
Roger Ineichen
_____________________________
END OF MESSAGE
More information about the Zope-Dev
mailing list