[Zope-Checkins] CVS: Products/ZCTextIndex - ZCTextIndex.py:1.48.2.1
Florent Guillaume
fg at nuxeo.com
Fri Nov 26 06:53:50 EST 2004
Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv12488
Modified Files:
Tag: Zope-2_7-branch
ZCTextIndex.py
Log Message:
Fail a bit more gracefully if no lexicon is passed.
=== Products/ZCTextIndex/ZCTextIndex.py 1.48 => 1.48.2.1 ===
--- Products/ZCTextIndex/ZCTextIndex.py:1.48 Tue Jun 17 15:01:09 2003
+++ Products/ZCTextIndex/ZCTextIndex.py Fri Nov 26 06:53:50 2004
@@ -74,7 +74,7 @@
self._indexed_attrs = self._fieldname.split(',')
self._indexed_attrs = [ attr.strip() for attr in self._indexed_attrs if attr ]
- lexicon_id = lexicon_id or extra.lexicon_id
+ lexicon_id = lexicon_id or getattr(extra, 'lexicon_id', '')
lexicon = getattr(caller, lexicon_id, None)
if lexicon is None:
More information about the Zope-Checkins
mailing list