Copying containers using zope.copypastemove does not update metadata of container contents
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zope.copypastemove |
Fix Released
|
Undecided
|
Michael Howitz | ||
zope.dublincore |
Fix Released
|
Undecided
|
Michael Howitz |
Bug Description
I found something strange in metadata when copying a persistent object.
My situation is the following:
I have a container with some elements inside. I create a copy of this container using
zope.copypastem
(Actually I use zope.copypastem
Side note: Is this the right way to copy an persistent object nowadays?
This happens tho dublin core metadata then:
As zope.dublincore
But zope.copypastem
zope.component.
So the zope.dublincore
This leads to a strange situation: the metadata of the copied container get updated but not the metadata of its contents.
This behavior has not changed since version 3.4.0 which was about 2,5 years ago.
I think this is a long-standing bug and it should it be fixed in zope.dublincore by registering the subscribers for (object, event)? (Additionally or exclusively, I'm not sure.)
Changed in zope.copypastemove: | |
status: | New → In Progress |
assignee: | nobody → Michael Howitz (mh-gocept) |
Changed in zope.copypastemove: | |
status: | Opinion → Fix Released |
Changed in zope.dublincore: | |
status: | Opinion → Fix Released |
I implemented the described solution (additionally registering the annotators for (object, event)) here: svn.zope. org/zope. dublincore/ branches/ icemac- lp620353/ setup.py? rev=115800& view=rev
http://
I added a test in zope.copypastemove which would have failed before as the creation date on the sub folder was not changed: svn.zope. org/zope. copypastemove/ branches/ icemac- lp620353/ setup.py? rev=115799& view=rev
http://