Hi, If I want to undo a very early action, I have to also undo all the actions done after the one I want to undo. The problem is that the action to undo is 4 pages earlier, so that I want to one time check all the actions of the 4 last pages. How to manage it? Thank you :-) -- Miroir de logiciels libres http://www.etud-orleans.fr Développement de logiciels libres http://aspo.rktmb.org/activites/developpement Infogerance de serveur dédié http://aspo.rktmb.org/activites/infogerance (En louant les services de l'ASPO vous luttez contre la fracture numerique)
Rakotomandimby (R12y) Mihamina wrote at 2005-6-9 22:40 +0200:
If I want to undo a very early action, I have to also undo all the actions done after the one I want to undo.
The problem is that the action to undo is 4 pages earlier, so that I want to one time check all the actions of the 4 last pages.
How to manage it?
Everything, you can do via the ZMI, you can do in a script (or an interactive Python interpreter). This is more appropriate for all kinds of mass operations. To find out what you can put into your script, you have 2 options: * you look at the Python source The "undo" methods are for example implememented in "App.Undo.UndoSupport". * you look at the HTML source of the ZMI pages and see there how the ZMI performs the task. -- Dieter
Rakotomandimby (R12y) Mihamina wrote:
If I want to undo a very early action, I have to also undo all the actions done after the one I want to undo.
The problem is that the action to undo is 4 pages earlier, so that I want to one time check all the actions of the 4 last pages.
How to manage it?
Some objects have a "History" tab, which allows "Copy to Present". This may be more useful. Also, can you not just undo one page at a time? I don't generally try undoing anything too far off as a rule, since I don't expect it to work. --jcc -- "Building Websites with Plone" http://plonebook.packtpub.com/
J Cameron Cooper <zope-l@jcameroncooper.com> :
Also, can you not just undo one page at a time? I don't generally try undoing anything too far off as a rule, since I don't expect it to work.
No, It was a CPS upgrade. The concerned object is the CPS site. I made the update, then we saw that we had to undo it, because some documents behaved wrong. You can guess we made many test before deciding to undo the upgrade. So we have to get back far in the past... very far... Four pages. I dont know how to use script as Dieter suggested. Is there any tips to start? -- Miroir de logiciels libres http://www.etud-orleans.fr Développement de logiciels libres http://aspo.rktmb.org/activites/developpement Infogerance de serveur dédié http://aspo.rktmb.org/activites/infogerance (En louant les services de l'ASPO vous luttez contre la fracture numerique)
Rakotomandimby (R12y) Mihamina <mihamina.rakotomandimby@etu.univ-orleans.fr> wrote:
J Cameron Cooper <zope-l@jcameroncooper.com> :
Also, can you not just undo one page at a time? I don't generally try undoing anything too far off as a rule, since I don't expect it to work.
No, It was a CPS upgrade. The concerned object is the CPS site.
I made the update, then we saw that we had to undo it, because some documents behaved wrong. You can guess we made many test before deciding to undo the upgrade. So we have to get back far in the past... very far...
Four pages.
I dont know how to use script as Dieter suggested. Is there any tips to start?
Change the occurences of "20" in lib/python/App/Undo.py into something bigger. Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com fg@nuxeo.com
Rakotomandimby (R12y) Mihamina wrote:
I made the update, then we saw that we had to undo it, because some documents behaved wrong. You can guess we made many test before deciding to undo the upgrade. So we have to get back far in the past... very far...
Four pages.
I dont know how to use script as Dieter suggested. Is there any tips to start?
I actually found this recently myself :-) I found that once I hit the "earlier transactions" link once, having opened the main ZMI frame in it's own window/tab, I could see the URL being used to do the batching. From that, I tweaked the URL to show many more transactions per page and so was unable to undo a lot of transactions in a way very similar to that you describe. The hardest part was selecting all the right checkboxes ;-) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (5)
-
Chris Withers -
Dieter Maurer -
Florent Guillaume -
J Cameron Cooper -
Rakotomandimby (R12y) Mihamina