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

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


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

Modified Files:
	TextIndex.py 
Log Message:
Collector #131:
fixed for a potential upgrade problem from pre-2.4.2/3 CMF installations



=== Zope/lib/python/Products/PluginIndexes/TextIndex/TextIndex.py 1.24 => 1.25 ===
             ## 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()