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
8ed18707
Commit
8ed18707
authored
May 07, 2010
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make undo log easier to read.
Thanks to Toby Dickinson for the patch. LP #142464
parent
73eb8f96
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
doc/CHANGES.rst
doc/CHANGES.rst
+3
-0
src/App/Undo.py
src/App/Undo.py
+2
-2
src/App/dtml/undo.dtml
src/App/dtml/undo.dtml
+1
-1
src/OFS/dtml/history.dtml
src/OFS/dtml/history.dtml
+1
-1
No files found.
doc/CHANGES.rst
View file @
8ed18707
...
...
@@ -93,6 +93,9 @@ Restructuring
Features
Added
++++++++++++++
-
LP
#
142464
:
Make
undo
log
easier
to
read
.
Thanks
to
Toby
Dickinson
for
the
patch
.
-
LP
#
142401
:
Added
a
link
in
the
ZMI
tree
pane
to
make
the
tree
state
persistent
.
Thanks
to
Lalo
Martins
for
the
patch
.
...
...
src/App/Undo.py
View file @
8ed18707
...
...
@@ -121,7 +121,7 @@ class UndoSupport(ExtensionClass.Base):
if
desc
:
desc
=
desc
.
split
()
d1
=
desc
[
0
]
desc
=
''
.
join
(
desc
[
1
:])
desc
=
'
'
.
join
(
desc
[
1
:])
if
len
(
desc
)
>
60
:
desc
=
desc
[:
56
]
+
' ...'
tid
=
"%s %s %s %s"
%
(
encode64
(
tid
),
t
,
d1
,
desc
)
...
...
@@ -140,7 +140,7 @@ class UndoSupport(ExtensionClass.Base):
for
tid
in
transaction_info
:
tid
=
tid
.
split
()
if
tid
:
transaction
.
get
().
note
(
"Undo %s"
%
''
.
join
(
tid
[
1
:]))
transaction
.
get
().
note
(
"Undo %s"
%
'
'
.
join
(
tid
[
1
:]))
tid
=
decode64
(
tid
[
0
])
undo
(
tid
)
...
...
src/App/dtml/undo.dtml
View file @
8ed18707
...
...
@@ -66,7 +66,7 @@ modified objects that were modified by a selected transaction.
</td>
<td align="left" valign="top">
<div class="list-item">
&dtml-description;
by <strong><dtml-if
<dtml-var description html_quote newline_to_br>
by <strong><dtml-if
user_name>&dtml-user_name;<dtml-else
><em>Zope</em></dtml-if></strong>
</div>
...
...
src/OFS/dtml/history.dtml
View file @
8ed18707
...
...
@@ -48,7 +48,7 @@
<div class="list-item">
<a href="&dtml-absolute_url;/HistoricalRevisions/&dtml-key;/manage_workspace"><dtml-var time fmt="%Y-%m-%d %H:%M"><dtml-if
user_name> (&dtml-user_name;)</dtml-if></a>
<br>
&dtml-description;
<br>
<dtml-var description html_quote newline_to_br>
<dtml-if revision>
<br>revision: <em>&dtml-revision;</em>
</dtml-if>
...
...
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