Commit 195f7726 authored by Florent Guillaume's avatar Florent Guillaume

Removed a warning at Zope startup.

parent 0cef0baa
...@@ -16,13 +16,21 @@ import common.ResultList as ResultList ...@@ -16,13 +16,21 @@ import common.ResultList as ResultList
import common.UnIndex as UnIndex import common.UnIndex as UnIndex
import PathIndex.PathIndex import PathIndex.PathIndex
import TextIndex.TextIndex
import FieldIndex.FieldIndex import FieldIndex.FieldIndex
import KeywordIndex.KeywordIndex import KeywordIndex.KeywordIndex
import TopicIndex.TopicIndex import TopicIndex.TopicIndex
import DateIndex.DateIndex import DateIndex.DateIndex
import DateRangeIndex.DateRangeIndex import DateRangeIndex.DateRangeIndex
# BBB: TextIndex is deprecated but we don't want the warning to appear here
import warnings
warnings.filterwarnings('ignore', message='^Using TextIndex', append=1)
try:
import TextIndex.TextIndex
finally:
del warnings.filters[-1]
del __warningregistry__
_indexes = ('TextIndex', _indexes = ('TextIndex',
'KeywordIndex', 'KeywordIndex',
'FieldIndex', 'FieldIndex',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment