[Zope-Checkins] CVS: Zope/lib/python/Products/ZCTextIndex - ZCTextIndex.py:1.37
Casey Duncan
casey@zope.com
Tue, 10 Dec 2002 13:58:20 -0500
Update of /cvs-repository/Zope/lib/python/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv26476/ZCTextIndex
Modified Files:
ZCTextIndex.py
Log Message:
Fixed getLexicon so that it can properly raise an error when it cannot find the proper lexicon object.
=== Zope/lib/python/Products/ZCTextIndex/ZCTextIndex.py 1.36 => 1.37 ===
--- Zope/lib/python/Products/ZCTextIndex/ZCTextIndex.py:1.36 Thu Oct 24 09:40:15 2002
+++ Zope/lib/python/Products/ZCTextIndex/ZCTextIndex.py Tue Dec 10 13:58:19 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