Commit 360d8872 authored by Hanno Schlichting's avatar Hanno Schlichting

Restore ability to undo multiple transactions from the ZMI by using the `undoMultiple` API.

parent ae3cbd34
...@@ -11,6 +11,9 @@ http://docs.zope.org/zope2/releases/. ...@@ -11,6 +11,9 @@ http://docs.zope.org/zope2/releases/.
Bugs Fixed Bugs Fixed
++++++++++ ++++++++++
- Restore ability to undo multiple transactions from the ZMI by using the
`undoMultiple` API.
- Made sure getConfiguration().default_zpublisher_encoding is set correctly. - Made sure getConfiguration().default_zpublisher_encoding is set correctly.
Features Added Features Added
......
...@@ -132,14 +132,15 @@ class UndoSupport(ExtensionClass.Base): ...@@ -132,14 +132,15 @@ class UndoSupport(ExtensionClass.Base):
def manage_undo_transactions(self, transaction_info=(), REQUEST=None): def manage_undo_transactions(self, transaction_info=(), REQUEST=None):
""" """
""" """
undo=self._p_jar.db().undo tids = {}
for tid in transaction_info: for tid in transaction_info:
tid=tid.split() tid = tid.split()
if tid: if tid:
transaction.get().note("Undo %s" % ' '.join(tid[1:])) tids[decode64(tid[0])] = tid[-1]
tid=decode64(tid[0])
undo(tid) if tids:
transaction.get().note("Undo %s" % ' '.join(tids.values()))
self._p_jar.db().undoMultiple(tids.keys())
if REQUEST is None: if REQUEST is None:
return return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment