[Zope-CVS] CVS: Products/ZCTextIndex/dtml - addLexicon.dtml:1.1.2.1 addZCTextIndex.dtml:1.1.2.1 manageZCTextIndex.dtml:1.1.2.1
Barry Warsaw
barry@wooz.org
Fri, 10 May 2002 18:38:07 -0400
Update of /cvs-repository/Products/ZCTextIndex/dtml
In directory cvs.zope.org:/tmp/cvs-serv15615/lib/python/Products/ZCTextIndex/dtml
Added Files:
Tag: TextIndexDS9-branch
addLexicon.dtml addZCTextIndex.dtml manageZCTextIndex.dtml
Log Message:
Checkpointing my changes for us (Casey & Barry) to work on next week.
This doesn't actually make the ZMI work for ZCTextIndex but it gets a
little closer. Of course, I could be all wrong. ;)
Specific changes:
Add dtml forms for creating a lexicon (not finished), creating the
ZCTextIndex (semi works), and managing the ZCTextIndex (not tested).
These were sitting in what I think was the wrong directory,
PluginIndexes/TextIndex/dtml, but I'm not removing them from this
directory for now.
=== Added File Products/ZCTextIndex/dtml/addLexicon.dtml ===
<dtml-var manage_page_header>
<dtml-var "manage_form_title(this(), _,
form_title='Add Lexicon',
)">
<FORM ACTION="manage_addLexicon" METHOD="POST">
<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">
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">
splitter?
</td>
<td align="left" valign="top">
<input type="checkbox" name="splitter" />
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
case normalizer?
</td>
<td align="left" valign="top">
<input type="checkbox" name="normalizer" />
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
remove stop words?
</td>
<td align="left" valign="top">
<input type="checkbox" name="stopword" />
</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>
=== Added File Products/ZCTextIndex/dtml/addZCTextIndex.dtml ===
<dtml-var manage_page_header>
<dtml-var "manage_form_title(this(), _,
form_title='Add ZCTextIndex',
)">
<p class="form-help">
<strong>Text Indexes</strong> break text up into individual words, and
are often referred to as full-text indexes. Text indexes
sort results by score, meaning they return hits in order
from the most relevant to the least relevant.
</p>
<form action="manage_addZCTextIndex" 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-label">
Vocabulary
</div>
</td>
<td>
<select name="extra.vocabulary:record">
<dtml-in "this().aq_parent.objectItems('Vocabulary')">
<option value="&dtml-sequence-key;">&dtml-sequence-key; (<dtml-var "_['sequence-item'].title">)
</dtml-in>
</select>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
Field name
</div></td>
<td align="left" valign="top">
<input type="text" name="extra.doc_attr:record" size="40" />
</td>
</tr>
<tr>
<td align="left" valign"top">
<div class="form-label">
Lexicon
</div></td>
<td>
<select name="extra.lexicon_id:record">
<dtml-in "this().aq_parent.objectItems('Lexicon')">
<option value="&dtml-sequence-key;">&dtml-sequence-key; (<dtml-var "_['sequence-item'].title">)
</dtml-in>
</select>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-optional">
Type
</div>
</td>
<td align="left" valign="top">
ZCTextIndex
</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>
=== Added File Products/ZCTextIndex/dtml/manageZCTextIndex.dtml ===
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<p class="form-help">
There is nothing to manage here. Move along.
</p>
<dtml-var manage_page_footer>