[Zope-Checkins] CVS: Zope/lib/python/Products/ZCTextIndex/dtml - manageZCTextIndex.dtml:1.6

Casey Duncan casey@zope.com
Wed, 14 Aug 2002 17:43:47 -0400


Update of /cvs-repository/Zope/lib/python/Products/ZCTextIndex/dtml
In directory cvs.zope.org:/tmp/cvs-serv14924/dtml

Modified Files:
	manageZCTextIndex.dtml 
Log Message:
Fix for issue #505
ZCTextIndex is now associated by path to its lexicon. After replacing a lexicon used by an index, clear the index to make it use the new lexicon.


=== Zope/lib/python/Products/ZCTextIndex/dtml/manageZCTextIndex.dtml 1.5 => 1.6 ===
--- Zope/lib/python/Products/ZCTextIndex/dtml/manageZCTextIndex.dtml:1.5	Fri Jun 28 13:25:22 2002
+++ Zope/lib/python/Products/ZCTextIndex/dtml/manageZCTextIndex.dtml	Wed Aug 14 17:43:46 2002
@@ -11,11 +11,16 @@
 </p>
 <p class="form-help">
   ZCTextIndex Lexicon used: 
-  <em><dtml-var getLexiconId></em>
+  <dtml-if getLexiconPath>
+    <a href="<dtml-var getLexiconPath>/manage_main"
+    ><dtml-var getLexiconPath></a>
+  <dtml-else>
+    <em>(Lexicon Not Found)</em>
+  </dtml-if>
 </p>
 <p class="form-help">
-  <em>Note:</em> You cannot change the lexicon assigned to a ZCTextIndex.
-  To use another lexicon, delete this index and create a new one that
-  uses the desired lexicon.
+  <em>Note:</em> The lexicon assigned to the index cannot be changed. To replace
+  the existing lexicon, create a new lexicon in the same place and clear the
+  index. This will make the index use the replacement lexicon.
 </p>
 <dtml-var manage_page_footer>