Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
379140f0
Commit
379140f0
authored
Jul 13, 2011
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore ability to undo multiple transactions from the ZMI.
parent
c244e98a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
doc/CHANGES.rst
doc/CHANGES.rst
+9
-0
src/App/Undo.py
src/App/Undo.py
+7
-6
No files found.
doc/CHANGES.rst
View file @
379140f0
...
...
@@ -8,6 +8,15 @@ http://docs.zope.org/zope2/releases/.
2.13.9 (unreleased)
-------------------
Bugs Fixed
++++++++++
- Restore ability to undo multiple transactions from the ZMI by using the
`undoMultiple` API. Backported from trunk (r122087).
Features Added
++++++++++++++
- Updated distributions:
- Products.ZCatalog = 2.13.15
...
...
src/App/Undo.py
View file @
379140f0
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment