[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TopicIndex/dtml - addTopicIndex.dtml:1.2 editFilteredSet.dtml:1.2 manageTopicIndex.dtml:1.2
Andreas Jung
andreas@digicool.com
Thu, 28 Feb 2002 10:32:12 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TopicIndex/dtml
In directory cvs.zope.org:/tmp/cvs-serv29886/dtml
Added Files:
addTopicIndex.dtml editFilteredSet.dtml manageTopicIndex.dtml
Log Message:
added TopicIndexes to trunk (merge from ajung-topicindex branch)
=== Zope/lib/python/Products/PluginIndexes/TopicIndex/dtml/addTopicIndex.dtml 1.1 => 1.2 ===
+
+<dtml-var "manage_form_title(this(), _,
+ form_title='Add TopicIndex',
+ )">
+
+<p class="form-help">
+A <em>TopicIndex</em> is a container for so-called <em>FilteredSets</em>
+that consist of an expression and a set of internal ZCatalog document
+identifiers that fulfill this expession. <em>TopicIndexes</em> are
+usefull for performance reasons when search queries take too long
+and pre-calculated resultsets offer a better performance.
+</p>
+
+
+<form action="manage_addTopicIndex" method="post" enctype="multipart/form-data">
+<table cellspacing="0" cellpadding="2" border="0">
+ <tr>
+ <td align="left" valign="top">
+ <div class="form-label">
+ Id
+ </div>
+ </td>
+ <td align="left" valign="top">
+ <input type="text" name="id" size="40" />
+ </td>
+ </tr>
+ <tr>
+ <td align="left" valign="top">
+ <div class="form-optional">
+ Type
+ </div>
+ </td>
+ <td align="left" valign="top">
+ TopicIndex
+ </td>
+ </tr>
+ <tr>
+ <td align="left" valign="top">
+ </td>
+ <td align="left" valign="top">
+ <div class="form-element">
+ <input class="form-element" type="submit" name="submit"
+ value=" Add " />
+ </div>
+ </td>
+ </tr>
+</table>
+</form>
+
+<dtml-var manage_page_footer>
=== Zope/lib/python/Products/PluginIndexes/TopicIndex/dtml/editFilteredSet.dtml 1.1 => 1.2 ===
+<dtml-var manage_tabs>
+
+<p>
+<dtml-with "filteredSets[filteredSet]">
+
+<form action="manage_saveFilteredSet" method="post" enctype="multipart/form-data">
+<input type="hidden" name="filterId" value="<dtml-var getId url_quote>" >
+
+<table cellspacing="0" cellpadding="2" border="1" width="90%" align="center">
+
+
+ <tr>
+ <th colspan="2">Edit FilteredSet</th>
+ </tr>
+
+ <tr>
+ <th>FilteredSet Id</th>
+ <td>
+ <dtml-var getId>
+ </td>
+ </tr>
+
+ <tr>
+ <th>FilteredSet Type</th>
+ <td><dtml-var getType></td>
+ </tr>
+
+ <tr>
+ <th>FilteredSet Expression</th>
+ <td>
+ <textarea name="expr" cols="60" rows="5"><dtml-var getExpression></textarea>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2" align="center">
+ <input class="form-element" type="submit" value=" Save " />
+ </td>
+ </tr>
+
+</table>
+</form>
+
+</dtml-with>
+
+<dtml-var manage_page_footer>
=== Zope/lib/python/Products/PluginIndexes/TopicIndex/dtml/manageTopicIndex.dtml 1.1 => 1.2 ===
+<dtml-var manage_tabs>
+
+
+<form action="&dtml-URL1;/" method="post" enctype="multipart/form-data">
+
+<table cellspacing="0" cellpadding="2" border="1" width="90%" align="center">
+
+<tr>
+ <th colspan="5">
+ Defined FilteredSets
+ </th>
+</tr>
+
+<dtml-if "_.len(filteredSets.values())>0">
+
+ <tr>
+ <th> </th>
+ <th>FilteredSet Id</th>
+ <th>FilteredSet Type</th>
+ <th>Expression</th>
+ <th># entries</th>
+ </tr>
+
+ <dtml-in expr="filteredSets.values()">
+ <dtml-call "REQUEST.set('fs',_['sequence-item'])">
+ <tr>
+
+ <td align="center">
+ <input type="checkbox" name="filterIds:list" value="<dtml-var "fs.getId()">">
+ </td>
+
+ <td align="center" valign="top">
+ <div class="form-label">
+ <a href="editFilteredSet?filteredSet=&dtml-id;"><dtml-var getId> </a>
+ </div>
+ </td>
+
+ <td align="center" valign="top">
+ <div class="form-label">
+ <dtml-var getType>
+ </div>
+ </td>
+
+ <td align="left" valign="top">
+ <div class="form-label">
+ <dtml-var getExpression>
+ </div>
+ </td>
+
+ <td align="center" valign="top">
+ <div class="form-label">
+ <dtml-var "_.len(fs.getIds())">
+ </div>
+ </td>
+
+ </tr>
+
+ </dtml-in>
+
+ <tr>
+ <td colspan="5" align="center">
+ <input class="form-element" type="submit" name="manage_delFilteredSet:method"
+ value=" Remove " />
+
+ <input class="form-element" type="submit" name="manage_clearFilteredSet:method"
+ value=" Clear " />
+
+
+ </td>
+ </tr>
+
+<dtml-else>
+ <tr>
+ <td colspan="5" align="center">
+ <em>no FilteredSets defined </em>
+ </td>
+ </tr>
+
+</dtml-if>
+
+</table>
+</form>
+
+<hr>
+
+<form action="manage_addFilteredSet" method="post" enctype="multipart/form-data">
+<table cellspacing="0" cellpadding="2" border="0">
+ <tr>
+ <td align="left" valign="top">
+ <div class="form-label">
+ Id for FilteredSet
+ </div>
+ </td>
+ <td align="left" valign="top">
+ <input type="text" name="filterId" size="40" />
+ </td>
+ </tr>
+
+ <tr>
+ <td align="left" valign="top">
+ <div class="form-label">
+ Type of FilteredSet
+ </div>
+ </td>
+ <td align="left" valign="top">
+ <select name="typeFilteredSet">
+ <option value="PythonFilteredSet">PythonFilteredSet
+<dtml-comment>
+ <option value="AttributeFilteredSet">AttributeFilteredSet
+</dtml-comment>
+ </select>
+ </td>
+ </tr>
+
+
+ <tr>
+ <td align="left" valign="top">
+ <div class="form-label">
+ Expression
+ </div>
+ </td>
+ <td align="left" valign="top">
+ <textarea type="text" name="expr" cols="60" rows="5" />
+ </td>
+ </tr>
+ <tr>
+ <td align="left" valign="top">
+ </td>
+ <td align="left" valign="top">
+ <div class="form-element">
+ <input class="form-element" type="submit" name="submit"
+ value=" Add " />
+ </div>
+ </td>
+ </tr>
+</table>
+</form>
+
+<dtml-var manage_page_footer>