[Zope-Checkins] SVN: Zope/trunk/ Added a link in the ZMI tree pane to make the tree state persistent.
Tres Seaver
tseaver at palladion.com
Fri May 7 10:25:08 EDT 2010
Log message for revision 112136:
Added a link in the ZMI tree pane to make the tree state persistent.
Thanks to Lalo Martins for the patch.
LP #142401
Changed:
U Zope/trunk/doc/CHANGES.rst
U Zope/trunk/src/App/dtml/menu.dtml
-=-
Modified: Zope/trunk/doc/CHANGES.rst
===================================================================
--- Zope/trunk/doc/CHANGES.rst 2010-05-07 14:01:45 UTC (rev 112135)
+++ Zope/trunk/doc/CHANGES.rst 2010-05-07 14:25:08 UTC (rev 112136)
@@ -93,6 +93,9 @@
Features Added
++++++++++++++
+- LP #142401: Added a link in the ZMI tree pane to make the tree state
+ persistent. Thanks to Lalo Martins for the patch.
+
- LP #142502: Added a knob to the Debug control panel for resetting
profile data. Thanks to Vladimir Patukhov for the patch.
Modified: Zope/trunk/src/App/dtml/menu.dtml
===================================================================
--- Zope/trunk/src/App/dtml/menu.dtml 2010-05-07 14:01:45 UTC (rev 112135)
+++ Zope/trunk/src/App/dtml/menu.dtml 2010-05-07 14:25:08 UTC (rev 112136)
@@ -43,7 +43,7 @@
<a href="&dtml.url_quote-tree-item-url;/manage_workspace"
target="manage_main">&dtml-id;</a>
</dtml-tree>
-<table cellspacing="0">
+<table cellspacing="0" bgcolor="#6699cc" width="100%">
<tr>
<td width="16"></td>
<td valign="top" nowrap>
@@ -62,8 +62,20 @@
</strong>
</td>
</tr>
+<tr>
+ <td width="16"></td>
+ <td valign="top" nowrap>
+ <strong>
+ <a href="manage_menu?save_layout=1">Save layout</a>
+ </strong>
+ </td>
+</tr>
</table>
+<dtml-if save_layout>
+ <dtml-call "RESPONSE.setCookie('tree-s', REQUEST.get('tree-s'), expires=ZopeTime('2975-05-26').rfc822())">
+</dtml-if>
+
<dtml-unless expr="REQUEST.get('zmi_top_frame', '1')">
<table width="100%" bgcolor="#6699cc">
<tr>
More information about the Zope-Checkins
mailing list