Nuxeo mailing list archives
[CPS-devel] History problem when copying a document
Jonathan.RIBOUX at chru-strasbourg.fr
Jonathan.RIBOUX at chru-strasbourg.fr
Tue Aug 29 12:50:22 CEST 2006
Hello dear list,
I have a document with several versions and an history (created, submitted,
published, ...).
When I copy/paste it, the duplicated document keeps the history, even lines
concerning a non existing version.
I would like to reset the history of the new document automatically, just
after it is pasted.
I tryed to replace those two lines from _unshareContent in
Products/CPSCore/ProxyTool.py :
history = repotool.getHistory(docid) or ()
repotool.setHistory(new_docid, history)
With this line :
repotool.setHistory(new_docid, ())
But I get an incomplete history instead of an empty one.
Is there an other way to do that ? Does anyone have a clue for me ?
I use CPS 3.2.0 but the same issue occurs on CPS 3.4.2.
Jonathan Riboux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nuxeo.com/pipermail/cps-devel/attachments/20060829/f970252e/attachment-0001.html
More information about the cps-devel
mailing list
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.