Hi
I'm having the following problem with CPS 3.4.2:
- in the portal_schemas, for the File (CPS Document) schema, replace File with
DiskFile.
- create a File (CPS Document) object in the workspace and upload a file in it
- publish the document into the section
Now:
- modify the filename of the attached file in the workspace side or edit or
upload a new file.
Problem : The modification is reflected in the section, although it should not.
The published object is a new revision and is supposed to be distinct from the
one in the workspace. This issue can even lead to data loss.
I've understood that the contained object (the DiskFile) is not cloned and the
two CPSDocument objects (the one in the section and the one in the workspace)
contain the same DiskFile object. I'm not sure I fully understand why it is not
cloned. The '_object' attribute of the proxy (which contains the contained
objects) is not serialized. So it's value is always an empty tuple. the
manageAfterClone code tries to iterate over it, so it doesn't find anything, and
does not clone the contained objects.
Is there something wrong with what I'm saying, or is there a real problem?
Christophe
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel