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
_______________________________________________
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )