[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndex - TextIndex.py:1.23.2.2

Andreas Jung andreas@digicool.com
Wed, 9 Jan 2002 10:38:25 -0500


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

Modified Files:
      Tag: Zope-2_5-branch
	TextIndex.py 
Log Message:
Collector #131: fixed a potential upgrade problem for pre-2.4.2/3 installations
using CMF


=== Zope/lib/python/Products/PluginIndexes/TextIndex/TextIndex.py 1.23.2.1 => 1.23.2.2 ===
             ## if no lexicon is provided, create a default one
             try:
+
+                if self.catalog is None:
+                    self.catalog = self.aq_inner.aq_parent.aq_base
+                
                 self._lexicon = getattr(self.catalog,self.vocabulary_id).getLexicon()
             except:                
                 self._lexicon = Lexicon()