Re: History problem when copying a document
Julien Anguenot <[email protected]>
| Newsgroups | gmane.comp.web.zope.cps.devel |
|---|---|
| Organization | NUXEO |
| Message-ID | <[email protected]> |
Jonathan.RIBOUX-ojgVOjBmvPKr0CvDWf3zeEZa+K1vlBrA@public.gmane.org wrote: > 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. Hi, I don't rember exactly what's displayed on the history page but it might be the workflow history which is remaining here. The workflow history is on the proxy : Check the hasattr(aq_base(proxy), 'workflow_history') Can you enter a ticket ahout the copy/paste and broken history please ? Cheers, J. -- Julien Anguenot | Nuxeo R&D (Paris, France) Open Source ECM - www.nuxeo.com CPS Platform - http://www.cps-project.org Mobile: +33 (0) 6 72 57 57 66 _______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel
signature.asc
(application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE/iK0GhoG8MxZ/pIRAnz9AJwJI4GKFuWuOhGDyZFZ3+73hs0cbQCfTARf r98Yzehmb4B+JjU8tNFZi5w= =us4b -----END PGP SIGNATURE-----