[CMF-checkins] CVS: Products/CMFCore/dtml - cpp_defaultWidget.dtml:1.1.2.1 cpp_nameSuffixWidget.dtml:1.1.2.1 cpp_registryPredList.dtml:1.1.2.1

Tres Seaver tseaver@zope.com
Fri, 11 Jan 2002 19:27:15 -0500


Update of /cvs-repository/Products/CMFCore/dtml
In directory cvs.zope.org:/tmp/cvs-serv2968/dtml

Added Files:
      Tag: tseaver-portal_caching-branch
	cpp_defaultWidget.dtml cpp_nameSuffixWidget.dtml 
	cpp_registryPredList.dtml 
Log Message:
 - Initial checkin of caching tool.

=== Added File Products/CMFCore/dtml/cpp_defaultWidget.dtml ===
<dtml-comment>
   This snippet is designed to be included in a larger method;  it
   provides input elements for a cache policy predicate which matches
   the suffix of a skin method name.
</dtml-comment>
<input type="hidden"
       name="predicate.id:record"
       value="&dtml-getId;">
<em> Default predicates have no properties. </em>


=== Added File Products/CMFCore/dtml/cpp_nameSuffixWidget.dtml ===
<dtml-comment>
   This snippet is designed to be included in a larger method;  it
   provides input elements for a cache policy predicate which matches
   the suffix of a skin method name.
</dtml-comment>
<strong> Suffix: </strong
<input type="hidden"
       name="predicate.id:record"
       value="&dtml-getId;">
<input type="text"
       name="predicate.skin_name_suffix:record"
       value="&dtml-getSkinNameSuffix;"
       size="8">
<em> Tests suffix of skin method name (blank matches nothing). </em>


=== Added File Products/CMFCore/dtml/cpp_registryPredList.dtml ===
<dtml-var manage_page_header>
<dtml-var manage_tabs>

<h2> Edit Predicate List </h2>

<table>
<dtml-in listPredicates>
 <dtml-let item=sequence-item
           pred="item[0]"
           typName="item[1]"
           predType="pred.getTypeLabel()"
           cacheMgrID="getCacheManagerID( pred.getId() ) or ''"
 >
  <tr valign="top">
   <th align="left"> &dtml-sequence-key;
                <br> [&dtml-predType;]:
   <th>
   <td align="left">
    <form action="&dtml-absolute_url;">
     <dtml-with expr="pred">
      <dtml-var predicateWidget>
      <input type="hidden" name="predicate_id" value="&dtml-getId;">
     </dtml-with>
   <br>
     <input name="cacheManagerID" value="&dtml-cacheMgrID;">
     <input type="submit" name="doUpdatePredicate:method" value=" Change ">
     <input type="submit" name="doRemovePredicate:method" value=" Delete ">
     <input type="submit" name="doMovePredicateUp:method" value=" Up ">
     <input type="submit" name="doMovePredicateDown:method" value=" Down ">
    </form>
   </td>
   <td> <br> </td>
  </tr>
 </dtml-let>
</dtml-in>

 <tr valign="top">
  <th align="right"> Add predicate: </th>
  <td colspan="2" align="left">
    <form action="&dtml-absolute_url;">
      <input type="text" name="predicate_id">
      <select name="predicate_type">
       <dtml-in listPredicateTypes>
        <option> &dtml-sequence-item; </option>
       </dtml-in>
      </select>
      <input type="submit" name="doAddPredicate:method" value=" Add ">
    </form>
  </td>
 </tr>
</table>

<dtml-var manage_page_footer>