[Checkins] SVN: Products.ZCTextIndex/trunk/src/Products/ZCTextIndex/ZCTextIndex.py accept sets in addition to lists and tuples
Hano Schlichting
cvs-admin at zope.org
Mon Dec 3 10:08:37 UTC 2012
Log message for revision 128486:
accept sets in addition to lists and tuples
Changed:
U Products.ZCTextIndex/trunk/src/Products/ZCTextIndex/ZCTextIndex.py
-=-
Modified: Products.ZCTextIndex/trunk/src/Products/ZCTextIndex/ZCTextIndex.py
===================================================================
--- Products.ZCTextIndex/trunk/src/Products/ZCTextIndex/ZCTextIndex.py 2012-12-03 10:07:32 UTC (rev 128485)
+++ Products.ZCTextIndex/trunk/src/Products/ZCTextIndex/ZCTextIndex.py 2012-12-03 10:08:37 UTC (rev 128486)
@@ -183,7 +183,7 @@
if safe_callable(text):
text = text()
if text is not None:
- if isinstance(text, (list, tuple, )):
+ if isinstance(text, (list, tuple, set)):
all_texts.extend(text)
else:
all_texts.append(text)
More information about the checkins
mailing list