[Zope3-checkins] CVS: Zope3/src/zope/app/advanced - undo.dtml:1.1
Philipp von Weitershausen
philikon at philikon.de
Thu Apr 1 12:44:58 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/advanced
In directory cvs.zope.org:/tmp/cvs-serv15394
Added Files:
undo.dtml
Log Message:
Provide a browser view for Undo. This hooks into the new Undo model I
implemented last week. See http://dev.zope.org/Zope3/SimplifyUndoModel
for more information.
=== Added File Zope3/src/zope/app/advanced/undo.dtml ===
<HTML>
<HEAD>
<TITLE>Undo Changes</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555" ALINK="#77003B">
<!--#var manage_tabs-->
<P>
<!--#if undoable_transactions-->
<FORM ACTION="manage_undo_transactions" METHOD="POST">
This application's transactional feature allows you to easily undo changes
made to the application's settings or data. You can revert the application
to a "snapshot" of it's state at a previous point in time.
<P>
Select one or more transactions below and then click on the "Undo"
button to undo the transactions. Note that even though a transaction
is shown below, you will not be able to undo it if later transactions
modified objects that were modified by the transaction.
<table>
<tr><td colspan=2 align=center><INPUT TYPE="SUBMIT" VALUE=" Undo ">
</td></tr>
<tr><td></td></tr>
<!--#if first_transaction-->
<tr><td colspan=2 align=center>
<a href="manage_UndoForm?first_transaction:int=<!--#var
expr="first_transaction*2-last_transaction"
-->&last_transaction:int=<!--#var first_transaction
-->&PrincipiaUndoBatchSize:int=<!--#var PrincipiaUndoBatchSize
-->">
Later Transactions</h>
</td></tr>
<!--#/if-->
<!--#in undoable_transactions mapping-->
<tr>
<td valign=top><input type=checkbox name="transaction_info:list"
value="<!--#var id--> <!--#var pos-->"></td>
<td valign=top>
<strong><!--#var desc--></strong> by <strong>
<!--#if user-->
<strong><!--#if path--><!--#var path-->/<!--#/if--><!--#var user-->
<!--#else-->
<em>Zope</em>
<!--#/if-->
</strong> on <!--#var time fmt=Mon--> <!--#var time fmt=day--> at
<!--#var time fmt=Time-->
</td>
</tr>
<!--#/in-->
<tr><td colspan=2 align=center>
<!--#if expr="_.len(undoable_transactions) == PrincipiaUndoBatchSize"-->
<a href="manage_UndoForm?first_transaction:int=<!--#var
last_transaction-->&last_transaction:int=<!--#var
expr="last_transaction+PrincipiaUndoBatchSize"
-->&PrincipiaUndoBatchSize:int=<!--#var PrincipiaUndoBatchSize
-->">
Earlier Transactions</a>
<!--#/if-->
</td></tr>
<tr><td></td></tr>
<tr><td colspan=2 align=center><INPUT TYPE="SUBMIT" VALUE=" Undo ">
</td></tr>
</table>
</FORM>
<!--#else-->
There are no transactions that can be undone.
<!--#/if-->
</BODY>
</HTML>
More information about the Zope3-Checkins
mailing list