[Zope-Checkins] CVS: Products/Transience/dtml - manageTransientObjectContainer.dtml:

Chris McDonough chrism at plope.com
Sun Oct 10 22:41:18 EDT 2004

Update of /cvs-repository/Products/Transience/dtml
In directory cvs.zope.org:/tmp/cvs-serv30889/dtml

Modified Files:
      Tag: Zope-2_7-branch
Log Message:
- Make TransientObjectContainer __setstate__ actually work. ;-)
  Upgrades should be flawless from Zope 2.7.0, 2.7.1, and 2.7.2.
  Upgrades from 2.6.3 will work, but data may not be retained.

- Added a "reset" button to the TOC management page and a reset
  argument to the associated target method.  This allows users
  to decide to ditch the contents of their TOC and "start over".
  It also has the effect of setting persistent objects which
  cause the logic in __setstate__ to basically be a noop after
  a single run.

- Added tests for manage_changeTOC and disabling inband gc.

- Changed default timeout for new TOCs to 60 seconds (this
  is helpful to prevent certain classes of conflicts, see
  http://www.plope.com/Members/dunny/conflicts for more info.

=== Products/Transience/dtml/manageTransientObjectContainer.dtml => ===
--- Products/Transience/dtml/manageTransientObjectContainer.dtml:	Fri Sep 17 22:58:19 2004
+++ Products/Transience/dtml/manageTransientObjectContainer.dtml	Sun Oct 10 22:40:48 2004
@@ -120,29 +120,46 @@
      	value="&dtml-getDelNotificationTarget;" size=40>
+  <td align="left" valign="top">
+   <div class="form-label">
+      Reset
+   </div>
+   <div class="form-help">
+       If reset is selected, submitting the form unconditionally deletes all
+       data from this transient object container.
+   </div>
+  </td>
+  <td align="left" valign="top">
+      <input class="form-element" type="checkbox" name="do_toc_reset">
+    </td>
-<dtml-let l=getLen>
-<dtml-if l>
 <td colspan=2>
-<p class="form-label">
+<p class="form-label" style="margin-top: 10px;">
 <font color="red">WARNING!</font>
 All data objects existing in this transient object container
-will be deleted when the data object timeout or expiration resolution
-is changed.
+will be deleted when this form is submitted if:
+  <li class="form-label"> the data object timeout or timeout resolution
+is changed </li>
+  <li class="form-label"> the "Reset" checkbox is checked </li>
   <input class="form-element" type="submit" name="submit" value=" Change ">

More information about the Zope-Checkins mailing list