[Zope-Checkins] CVS: Products/PluginIndexes/TextIndex - TextIndex.py:1.9.2.2

Andreas Jung andreas@digicool.com
Tue, 31 Jul 2001 15:52:22 -0400


Update of /cvs-repository/Products/PluginIndexes/TextIndex
In directory cvs.zope.org:/tmp/cvs-serv10338/TextIndex

Modified Files:
      Tag: Zope-2_4-branch
	TextIndex.py 
Log Message:
changed aquisition of lexicon to be implicit

 
=== Products/PluginIndexes/TextIndex/TextIndex.py 1.9.2.1 => 1.9.2.2 ===
             ## if no lexicon is provided, create a default one
             try:
-                self._lexicon = self.aq_parent.aq_parent[self.vocabulary_id].getLexicon()
+                self._lexicon = self.aq_parent.getattr(self.vocabulary_id).getLexicon()
             except:                
                 self._lexicon = Lexicon()
                 self.vocabulary_id = '__intern__'