[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG - TextIndexNG.py:1.2.2.35

Andreas Jung andreas@digicool.com
Fri, 15 Feb 2002 18:21:26 -0500


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG
In directory cvs.zope.org:/tmp/cvs-serv338

Modified Files:
      Tag: ajung-textindexng-branch
	TextIndexNG.py 
Log Message:
added default value for splitterCasefolding because Record instances
don't support getattr() with a default value :-(


=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/TextIndexNG.py 1.2.2.34 => 1.2.2.35 ===
 
         # allow single characters
-        self.splitterCasefolding   = getattr(extra,'splitterCasefolding',1)
+        self.splitterCasefolding   = getattr(extra,'splitterCasefolding',1) or 1
 
         # name of stemmer or None
         self.useStemmer    = getattr(extra,'useStemmer',    None) or None