[Zope-CVS] CVS: Products/Transience/dtml - addTransientObjectContainer.dtml:1.1 manageImpExpTransientObjects.dtml:1.1 manageTransientObjectContainer.dtml:1.1
Matthew T. Kromer
matt@zope.com
Mon, 22 Oct 2001 12:23:53 -0400
Update of /cvs-repository/Products/Transience/dtml
In directory cvs.zope.org:/tmp/cvs-serv31059/dtml
Added Files:
addTransientObjectContainer.dtml
manageImpExpTransientObjects.dtml
manageTransientObjectContainer.dtml
Log Message:
updated transience checkin in proper place ;)
=== Added File Products/Transience/dtml/addTransientObjectContainer.dtml ===
<dtml-var manage_page_header>
<dtml-var "manage_form_title(this(), _,
form_title='Add Transient Object Container',
help_product='Transience',
help_topic='Transience.stx'
)">
<FORM ACTION="constructTransientObjectContainer" METHOD="POST">
<TABLE CELLSPACING="2">
<tr>
<div class="form-help">
<p>
Transient Object Containers are used to store transient data in Zope; this
transient data persists, but only for a limited period of time.
</p>
<p>
It is recommended that Transient Object Containers be added to storages which
do not support undo operations; transient objects are write-intensive, and
can generate considerable load on the storage.
</p>
<p>
Transient Object Containers support <b>Notification Targets</b> which
are methods which are invoked when transient objects are added or deleted
from the container. A notification target is invoked with the item being
operated upon, and the transient object container as arguments.
</p>
</div>
</tr>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">
<div class="form-label">
Id
</div>
</TD>
<TD ALIGN="LEFT" VALIGN="TOP">
<INPUT TYPE="TEXT" NAME="id" SIZE="20">
</TD>
</TR>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">
<div class="form-label">
<em>Title</em>
</div>
</TD>
<TD ALIGN="LEFT" VALIGN="TOP">
<INPUT TYPE="TEXT" NAME="title" SIZE="40">
</TD>
</TR>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">
<div class="form-label">
Data object timeout in minutes
</div>
</TD>
<TD ALIGN="LEFT" VALIGN="TOP">
<INPUT TYPE="TEXT" NAME="timeout_mins:int" SIZE="10" value="20">
</TD>
</TR>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">
<div class="form-label">
<em>Add Notification Target</em>
</div>
</TD>
<TD ALIGN="LEFT" VALIGN="TOP">
<INPUT TYPE="TEXT" NAME="addNotification" SIZE="40">
</TD>
</TR>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">
<div class="form-label">
<em>Delete Notification Target</em>
</div>
</TD>
<TD ALIGN="LEFT" VALIGN="TOP">
<INPUT TYPE="TEXT" NAME="delNotification" SIZE="40">
</TD>
</TR>
<TR>
<TD>
</TD>
<TD> <BR><INPUT class="form-element" TYPE="SUBMIT" VALUE=" Add "> </TD>
</TR>
</TABLE>
</FORM>
<dtml-var manage_page_footer>
=== Added File Products/Transience/dtml/manageImpExpTransientObjects.dtml ===
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<div class="form-help">
Transient object data will be imported/exported to/from the file
'var/transientobjects.zexp' on your server's hard disk in your Zope
directory.
</div>
<br>
<table>
<tr>
<td align="left" valign="top">
<form action="manage_exportTransientObjects" method="post">
<input class="form-element" type=submit name=submit value="Export Transient Objects">
</form>
</td>
<td width="20%"> </td>
<td align="left" valign="top">
<form action="manage_importTransientObjects" method="post">
<input class="form-element" type=submit name=submit value="Import Transient Objects">
</form>
</td>
</tr>
</table>
<dtml-var manage_page_footer>
=== Added File Products/Transience/dtml/manageTransientObjectContainer.dtml ===
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<table cellspacing="2">
<form action="manage_changeTransientObjectContainer" method="post">
<tr>
<td align="left" valign="top">
<div class="form-label">
<font color="green">
<dtml-let l=getLen>
<dtml-if l>
<dtml-if "l == 1">1 item is in this transient object container.
<dtml-else><dtml-var l> items are in this transient object container.
</dtml-if>
<dtml-else>
There are no items in this transient object container.
</dtml-if>
</dtml-let>
</font>
</div>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
<em>Title</em>
</div>
</td>
<td align="left" valign="top">
<input type="text" name="title" size=20 value="&dtml-title;">
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
Data object timeout value in minutes
</div>
</td>
<td align="left" valign="top">
<input type="text" name="timeout_mins:int" size=10
value=&dtml-getTimeoutMinutes;>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
<em>Add Notification Target</em>
</div>
</td>
<td align="left" valign="top".
<input type="text" name="addNotification"
value="&dtml-getAddNotificationTarget;" size=40>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
<em>Delete Notification Target</em>
</div>
</td>
<td align="left" valign="top".
<input type="text" name="delNotification"
value="&dtml-getDelNotificationTarget;" size=40>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td align="center" valign="top">
<input class="form-element" type=submit name=submit value=" Change ">
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
<font color="red">WARNING!</font>
The data objects currently existing in this session data container
will be deleted when the data object timeout is changed.
</div>
</td>
</tr>
</form>
</table>