[Zope-CVS] CVS: Products/Sessions/dtml - addDataManager.dtml:1.1 addIdManager.dtml:1.1 addRAMDB.dtml:1.1 manageDataManager.dtml:1.1 manageIdManager.dtml:1.1 mountfail.dtml:1.1

Matthew T. Kromer matt@zope.com
Thu, 1 Nov 2001 14:20:36 -0500


Update of /cvs-repository/Products/Sessions/dtml
In directory cvs.zope.org:/tmp/cvs-serv2132/dtml

Added Files:
	addDataManager.dtml addIdManager.dtml addRAMDB.dtml 
	manageDataManager.dtml manageIdManager.dtml mountfail.dtml 
Log Message:
Get Sessions working


=== Added File Products/Sessions/dtml/addDataManager.dtml ===
<dtml-var manage_page_header>

<dtml-var "manage_form_title(this(), _,
           form_title='Add Session Data Manager',
           help_product='Sessions',
           help_topic='Sessions.stx'
	   )">

<FORM ACTION="constructSessionDataManager" METHOD="POST">
<TABLE CELLSPACING="2">
<tr>
<div class="form-help">
Zope Session Data Managers objects keep track of your users' session data
objects.  Developers interact with a Session Data Manager in order to store
and retrieve information during a user session.  A Session Data Manager
communicates with a Browser Id Manager to determine the session information
for the current user, and hands out Session Data Objects related to that
user obtained from a Transient Object Container.
</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">
     Title
    </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">
    Transient Object Container Path
    </div>
    <div class="form-help">e.g. '/tempFolder/transientObjectContainer'.</div>
  </TD>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <INPUT TYPE="TEXT" NAME="path" SIZE="60" value="/tempFolder/transientObjectContainer">
  </TD>
</TR>

<tr>
  <td align="LEFT" valign="TOP">
    <div class="form-label">
    Automatic SESSION placement in REQUEST object
    </div>
  </td>
  <td align="LEFT" valign="TOP">
  	<input class="form-element" type='CHECKBOX' name='automatic' CHECKED>
  </td>
</tr>

<tr>
</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/Sessions/dtml/addIdManager.dtml ===
<dtml-var manage_page_header>
<dtml-var "manage_form_title(this(), _,
           form_title='Add Browser Id Manager',
           help_product='Browsers',
           help_topic='Browsers.stx'
	   )">

<FORM ACTION="constructBrowserIdManager" METHOD="POST">
<input type=hidden name="id" value="browser_id_mgr">
<TABLE CELLSPACING="2">
<tr>
<div class="form-help">
Zope Browser Id Manager objects perform the task of setting and retrieving
Zope browser ids for remote users.  They are used primarily by Session
Data Manager objects.  A Browser Id Manager's 'id' must always be
'browser_id_mgr' in order for it to be found by Session Data Managers.
</div>
</tr>
<TR>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <div class="form-label">
      Id
    </div>
  </TD>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <div class="form-label">This object's Zope id will be<br>
    "browser_id_mgr"
    </div>
  </TD>
</TR>
<TR>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <div class="form-label">
      Title
    </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">
      Browser Token Key
    </div>
  </TD>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <INPUT TYPE="TEXT" NAME="tokenkey" SIZE="20" value="_ZopeId">
  </TD>
</TR>
<tr>
<td>&nbsp;</td>
</tr>
<th align="left"><strong><em>Token Key Search Namespaces</strong></em></th>
<th align="left"><strong><em>Priority (1 is highest)</strong></em></th>
<tr>
  <th align=left class="form-label">Cookies</th>
   <td>
   <table border=1>
   <tr>
   <td align=left>
    <input type="radio" name="cookiepri:int" value="1" CHECKED> 1
   </td>
   <td align=left>
    <input type="radio" name="cookiepri:int" value="2"> 2
   </td>
   <td align=left>
    <input type="radio" name="cookiepri:int" value="0"> Off
   </td>
   </tr>
   </table>
  </td>
</tr>
<tr>
  <th align=left class="form-label">Form vars</th>
   <td align=left>
   <table border=1>
   <tr>
   <td align=left>
    <input type="radio" name="formpri:int" value="1"> 1
   </td>
   <td align=left>
    <input type="radio" name="formpri:int" value="2" CHECKED> 2
   </td>
   <td align=left>
    <input type="radio" name="formpri:int" value="0"> Off
   </td>   </tr>
   </table>
  </td>
</tr>
<td>&nbsp;</td>
<tr>
</tr>
<TR>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <div class="form-label">
      Cookie Path
    </div>
    <div class="form-help">
     leave blank to provide no path info in the browser cookie
    </div>
  </TD>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <INPUT TYPE="TEXT" NAME="cookiepath" SIZE="20" value="/">
  </TD>
</TR>
<TR>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <div class="form-label">
      Cookie Domain
    </div>
    <div class="form-help">
    leave blank to send cookies without domain<br>
    info -- however, if cookie domain is not blank,<br>
    it must contain at least two dots
    </div>
  </TD>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <INPUT TYPE="TEXT" NAME="cookiedomain" SIZE="20">
  </TD>
</TR>
<TR>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <div class="form-label">
      Cookie Lifetime In Days
    </div>
    <div class="form-help">
      0 means send cookies which last only for the<br>
      lifetime of the browser
    </div>
</EM>
  </TD>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <INPUT TYPE="TEXT" NAME="cookielifedays:int" SIZE="20" value="0">
  </TD>
</TR>
<TR>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <div class="form-label">
      Only Send Cookie Over HTTPS
    </div>
  </TD>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <INPUT TYPE="checkbox" NAME="cookiesecure">
  </TD>
</TR>


</TR> <TR> <TD></TD> <TD>
<INPUT class="form-element" TYPE="SUBMIT" VALUE=" Add ">
</TD> </TR> </TABLE> </FORM>
<dtml-var manage_page_footer>




=== Added File Products/Sessions/dtml/addRAMDB.dtml ===
<dtml-var manage_page_header>

<dtml-var "manage_form_title(this(), _, 
	form_title='Add Temporary Folder',
	help_product='Sessions',
	help_topic='Sessions.stx'
	)">

<form action="manage_addRAMDB" method="POST">

<div class="form-help">
<p>
Temporary Folders are in-storage databases, which are created anew at every
initialization of Zope.  They are useful for storing temporary objects in.
</p>
</div>

<table cellspacing="2">

<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" value="tempFolder" />
  </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></td>
  <td><br><input class="form-element" type="SUBMIT" value=" Add "></td>
</tr>
</table>
</form>

<dtml-var manage_page_footer>


=== Added File Products/Sessions/dtml/manageDataManager.dtml ===
<dtml-var manage_page_header>
<dtml-var manage_tabs>

<form action="manage_changeSDM" method="post">
<table cellspacing="2">
<tr>
  <td align="left" valign="top">
    <div class="form-label">
    Title
    </div>
  </td>
  <td align="left" valign="top">
    <input type="text" name="title" size="60" value="&dtml-title;">
  </td>
</tr>
<tr>
  <td align="left" valign="top">
    <div class="form-label">
    Transient Object Container Path
    </div>
    <div class="form-help">
    e.g. '/tempFolder/transientObjectContainer'
    </div>
  </td>
  <td align="left" valign="top">
    <input type="text" name="path" size="60"
     value="&dtml-getContainerPath;">
  </td>
</tr>
<tr>
  <td align="LEFT" valign="TOP">
    <div class="form-label">
    Automatic SESSION placement in REQUEST object
    </div>
  </td>
  <td align="LEFT" valign="TOP">
    <dtml-if getAutomatic>
  	<input class="form-element" type='CHECKBOX' name='automatic' CHECKED>
    <dtml-else>
  	<input class="form-element" type='CHECKBOX' name='automatic'>
    </dtml-if>
  </td>
</tr>
<tr>
  <td>
  </td>
  <td align="left" valign="top">
    <div class="form-element">
      <input class="form-element" type="submit" value = " Change "> 
    </div>
  </td>
</tr>
</table>
</form>
<dtml-var manage_page_footer>




=== Added File Products/Sessions/dtml/manageIdManager.dtml ===
<dtml-var manage_page_header>
<dtml-var manage_tabs>

<FORM ACTION="manage_changeBrowserIdManager" METHOD="POST">
<TABLE CELLSPACING="2">
<TR>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <div class="form-label">
      Browser Id Mgr On
    </div>
  </TD>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <INPUT TYPE="checkbox" NAME="on"
     <dtml-if isOn>CHECKED</dtml-if>>
  </TD>
</TR>
<TR>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <div class="form-label">
      Title
    </div>
  </TD>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <INPUT TYPE="TEXT" NAME="title" SIZE="30" value="&dtml-title;">
  </TD>
</TR>
<TR>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <div class="form-label">
      Browser Token Key
    </div>
  </TD>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <INPUT TYPE="TEXT" NAME="tokenkey" SIZE="20" value="&dtml-getTokenKey;">
  </TD>
</TR>
<th align=left><strong><em>Token Key Search Namespaces</strong></em></th>
<th align=left><strong><em>Priority</strong></em> (1 is highest)</th>
<tr>
  <th align=left class="form-label">Cookies</th>
   <td align=left>
   <table border=1>
   <tr>
   <td align=left>
    <input type="radio" name="cookiepri:int" value="1"
     <dtml-if "getTokenKeyNamespaces().get(1, _.None) == 'cookies'">CHECKED</dtml-if>>1
   </td>
   <td align=left>
    <input type="radio" name="cookiepri:int" value="2"
     <dtml-if "getTokenKeyNamespaces().get(2, _.None) == 'cookies'">CHECKED</dtml-if>>2
   </td>
   <td align=left>
    <input type="radio" name="cookiepri:int" value="0"
    <dtml-if "'cookies' not in getTokenKeyNamespaces().values()">CHECKED</dtml-if>>Off
   </td>
   </tr>
   </table>
   </td>
</tr>
<tr>
  <th align=left class="form-label">Form vars</th>
   <td align=left>
   <table border=1>
   <tr>
   <td align=left>
    <input type="radio" name="formpri:int" value="1"
     <dtml-if "getTokenKeyNamespaces().get(1, _.None) == 'form'">CHECKED</dtml-if>>1
   </td>
   <td align=left>
    <input type="radio" name="formpri:int" value="2"
     <dtml-if "getTokenKeyNamespaces().get(2, _.None) == 'form'">CHECKED</dtml-if>>2
   </td>
   <td align=left>
    <input type="radio" name="formpri:int" value="0"
    <dtml-if "'form' not in getTokenKeyNamespaces().values()">CHECKED</dtml-if>>Off
   </td>
   </tr>
   </table>
   </td>
</tr>
<TR>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <div class="form-label">
      Cookie Path
    </div>
    <div class="form-help">
    leave blank to provide no path info in the browser cookie
   </div>
  </TD>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <INPUT TYPE="TEXT" NAME="cookiepath" SIZE="20"
     value="<dtml-var getCookiePath html_quote>">
  </TD>
</TR>
<TR>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <div class="form-label">
      Cookie Domain
    </div>
    <div class="form-help">
    leave blank to send cookies without domain <br>
    info -- however, if cookie domain is not blank,<br>
    it must contain at least two dots)
    </div>
  </TD>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <INPUT TYPE="TEXT" NAME="cookiedomain" SIZE="20"
     value="<dtml-var getCookieDomain html_quote>">
  </TD>
</TR>
<TR>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <div class="form-label">
      Cookie Lifetime In Days
    </div>
    <div class="form-help">
     0 means send cookies which last only for the<br>
     lifetime of the browser
    </div>
  </TD>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <INPUT TYPE="TEXT" NAME="cookielifedays:int" SIZE="20"
     value="<dtml-var getCookieLifeDays html_quote>">
  </TD>
</TR>
<TR>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <div class="form-label">
      Only Send Cookie Over HTTPS
    </div>
  </TD>
  <TD ALIGN="LEFT" VALIGN="TOP">
    <INPUT TYPE="checkbox" NAME="cookiesecure"
     <dtml-if getCookieSecure>CHECKED</dtml-if>>
  </TD>
</TR>
<TR>
  <TD></TD>
  <TD><BR><INPUT class="form-element" TYPE="SUBMIT" VALUE=" Change "></TD>
</TR>
</TABLE>
</FORM>
<dtml-var manage_page_footer>



=== Added File Products/Sessions/dtml/mountfail.dtml ===
<HTML><HEAD><TITLE>Mount Failure Traceback</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<dtml-var manage_tabs>

<h3>Mount Failure Traceback</h3>

<dtml-let exc=mount_error_>
<dtml-if exc>
<strong>Error type:</strong> <dtml-var "exc[0]" html_quote><br>
<strong>Error value:</strong> <dtml-var "exc[1]" html_quote><br>
<pre>
<dtml-var "exc[2]" html_quote>
</pre>
<dtml-else>
Database not mounted.
</dtml-if>
</dtml-let>

</BODY>
</HTML>