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
360d8872
Commit
360d8872
authored
Jul 03, 2011
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore ability to undo multiple transactions from the ZMI by using the `undoMultiple` API.
parent
ae3cbd34
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
doc/CHANGES.rst
doc/CHANGES.rst
+3
-0
src/App/Undo.py
src/App/Undo.py
+7
-6
No files found.
doc/CHANGES.rst
View file @
360d8872
...
@@ -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
...
...
src/App/Undo.py
View file @
360d8872
...
@@ -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
...
...
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