[Zope-Checkins] CVS: Zope/lib/python/Products/ZCTextIndex - ZCTextIndex.py:1.35.2.2

Casey Duncan casey@zope.com
Tue, 10 Dec 2002 13:54:01 -0500


Update of /cvs-repository/Zope/lib/python/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv26085

Modified Files:
      Tag: Zope-2_6-branch
	ZCTextIndex.py 
Log Message:
Fix lexicon test so it doesn't itself blow up when raising the exception


=== Zope/lib/python/Products/ZCTextIndex/ZCTextIndex.py 1.35.2.1 => 1.35.2.2 ===
--- Zope/lib/python/Products/ZCTextIndex/ZCTextIndex.py:1.35.2.1	Thu Oct 24 09:46:16 2002
+++ Zope/lib/python/Products/ZCTextIndex/ZCTextIndex.py	Tue Dec 10 13:54:00 2002
@@ -124,7 +124,7 @@
             lexicon = getattr(aq_parent(aq_inner(self)), self.lexicon_id)
             if not ILexicon.isImplementedBy(lexicon):
                 raise TypeError('Object "%s" is not a ZCTextIndex Lexicon'
-                                % lexicon.getId())
+                                % repr(lexicon))
             self._v_lexicon = lexicon
             return lexicon