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/.
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.
Features Added
......
......@@ -132,14 +132,15 @@ class UndoSupport(ExtensionClass.Base):
def manage_undo_transactions(self, transaction_info=(), REQUEST=None):
"""
"""
undo=self._p_jar.db().undo
tids = {}
for tid in transaction_info:
tid=tid.split()
tid = tid.split()
if tid:
transaction.get().note("Undo %s" % ' '.join(tid[1:]))
tid=decode64(tid[0])
undo(tid)
tids[decode64(tid[0])] = tid[-1]
if tids:
transaction.get().note("Undo %s" % ' '.join(tids.values()))
self._p_jar.db().undoMultiple(tids.keys())
if REQUEST is None:
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