[Zope-CVS] CVS: Products/ZCTextIndex - ZCTextIndex.py:1.5

Casey Duncan casey@zope.com
Tue, 14 May 2002 16:26:50 -0400


Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv27975

Modified Files:
	ZCTextIndex.py 
Log Message:
Added clear method to comply with plug-in index API.


=== Products/ZCTextIndex/ZCTextIndex.py 1.4 => 1.5 ===
         return [get_word(wid) for wid in word_ids]
         
+    def clear(self):
+        """reinitialize the index"""
+        self.index = Index(self.lexicon)
+        
     def _get_object_text(self, obj):
         x = getattr(obj, self._fieldname)
         if callable(x):