[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG - TextIndexNG.py:1.2.2.39
Andreas Jung
andreas@digicool.com
Mon, 18 Feb 2002 16:34:56 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG
In directory cvs.zope.org:/tmp/cvs-serv15805
Modified Files:
Tag: ajung-textindexng-branch
TextIndexNG.py
Log Message:
changing the preferences no longer clears the index
=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/TextIndexNG.py 1.2.2.38 => 1.2.2.39 ===
if len(self.checkPositionMap(posMap, distance, bidirectional)) > 0:
+ debug("\t\tvalid docId: %s" % docId)
res_docIds.insert(docId)
r = ResultSet( res_docIds, words)
@@ -912,24 +913,12 @@
for x in ('useOperator','useGlobbing','useSimilarity',
'useSplitter','useStemmer'):
- changed = 0
-
if hasattr(extra,x):
oldval = getattr(self,x)
newval = getattr(extra,x)
setattr(self, x, newval)
- if oldval != newval:
- changed = 1
- if changed:
- debug('settings changed')
- self.clear()
-
- if RESPONSE:
- RESPONSE.redirect(URL2 + '/manage_main?manage_tabs_message'\
- '=Index%20cleared,%20Preferences%20saved')
- return
if RESPONSE:
RESPONSE.redirect(URL2 +