Yes thxs you, I saw this extension. It's work with that. I saw than this user meet same problem: http://xwiki.markmail.org/message/2tx6ac55lrjmju6u?q=purge+history+already+associated
With velocity it is impossible to remove history then? If yes, I will shedule your extension. ________________________________ De : "[email protected]" <[email protected]> À : XWiki Users <[email protected]> Envoyé le : Mardi 8 juillet 2014 10h52 Objet : Re: [xwiki-users] how to purge history in a space? Hi Pascal, Does it work with http://extensions.xwiki.org/xwiki/bin/view/Extension/Remove+Document+History ? Thanks -Vincent On 8 Jul 2014 at 10:29:13, Pascal BASTIEN ([email protected](mailto:[email protected])) wrote: > Hello, > I need some help with my velocity script. > I try to remove history of pages on a space. > This code work well for a page: > > {{velocity}} > $xwiki.getDocument('BacASable.TestPage3').getDocument().resetArchive($context.context) > {{/velocity}} > > but my script fail when I launch this one to remove history of all BacASable > space Page > > > {{velocity}} > #foreach ($docName in $xwiki.getSpaceDocsName("BacASable")) > $xwiki.getDocument("BacASable.$docName").getDocument().resetArchive($context.context) > * history of "BacASable.$docName" removed > #end > {{/velocity}} > > I obtain this error: > > Caused by: org.hibernate.NonUniqueObjectException: a different object with > the same identifier value was already associated with the session: > [com.xpn.xwiki.doc.rcs.XWikiRCSNodeInfo#com.xpn.xwiki.doc.rcs.XWikiRCSNodeId@2ff3ff58[docId=9026427162423984573,version=4.1]] > Any ideas what's I'm doing wrong? Thxs > > Note: deletion of WebHome history doessn't work: > $xwiki.getDocument('BacASable.WebHome').getDocument().resetArchive($context.context) > > > Pascal B (on Xwiki 6.0) _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
