Commit 8ed18707 authored by Tres Seaver's avatar Tres Seaver

Make undo log easier to read.

Thanks to Toby Dickinson for the patch.

LP #142464
parent 73eb8f96
...@@ -93,6 +93,9 @@ Restructuring ...@@ -93,6 +93,9 @@ Restructuring
Features Added 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 - LP #142401: Added a link in the ZMI tree pane to make the tree state
persistent. Thanks to Lalo Martins for the patch. persistent. Thanks to Lalo Martins for the patch.
......
...@@ -121,7 +121,7 @@ class UndoSupport(ExtensionClass.Base): ...@@ -121,7 +121,7 @@ class UndoSupport(ExtensionClass.Base):
if desc: if desc:
desc = desc.split() desc = desc.split()
d1 = desc[0] d1 = desc[0]
desc = ''.join(desc[1:]) desc = ' '.join(desc[1:])
if len(desc) > 60: if len(desc) > 60:
desc = desc[:56] + ' ...' desc = desc[:56] + ' ...'
tid = "%s %s %s %s" % (encode64(tid), t, d1, desc) tid = "%s %s %s %s" % (encode64(tid), t, d1, desc)
...@@ -140,7 +140,7 @@ class UndoSupport(ExtensionClass.Base): ...@@ -140,7 +140,7 @@ class UndoSupport(ExtensionClass.Base):
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:])) transaction.get().note("Undo %s" % ' '.join(tid[1:]))
tid=decode64(tid[0]) tid=decode64(tid[0])
undo(tid) undo(tid)
......
...@@ -66,7 +66,7 @@ modified objects that were modified by a selected transaction. ...@@ -66,7 +66,7 @@ modified objects that were modified by a selected transaction.
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
<div class="list-item"> <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 user_name>&dtml-user_name;<dtml-else
><em>Zope</em></dtml-if></strong> ><em>Zope</em></dtml-if></strong>
</div> </div>
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<div class="list-item"> <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 <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> user_name> (&dtml-user_name;)</dtml-if></a>
<br>&dtml-description; <br><dtml-var description html_quote newline_to_br>
<dtml-if revision> <dtml-if revision>
<br>revision: <em>&dtml-revision;</em> <br>revision: <em>&dtml-revision;</em>
</dtml-if> </dtml-if>
......
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