Commit b568aba6 authored by Florent Guillaume's avatar Florent Guillaume

Removed a warning at Zope startup.

parent c1e2a711
...@@ -37,7 +37,6 @@ import transaction ...@@ -37,7 +37,6 @@ import transaction
from Products.PluginIndexes.common.PluggableIndex \ from Products.PluginIndexes.common.PluggableIndex \
import PluggableIndexInterface import PluggableIndexInterface
from Products.PluginIndexes.interfaces import IPluggableIndex from Products.PluginIndexes.interfaces import IPluggableIndex
from Products.PluginIndexes.TextIndex import Splitter
from zope.interface import implements from zope.interface import implements
from Catalog import Catalog, CatalogError from Catalog import Catalog, CatalogError
...@@ -508,9 +507,12 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -508,9 +507,12 @@ class ZCatalog(Folder, Persistent, Implicit):
'?manage_tabs_message=Reindexing%20Performed') '?manage_tabs_message=Reindexing%20Performed')
# BBB: will be removed in Zope 2.12 (like TextIndex itself)
security.declareProtected(manage_zcatalog_entries, 'availableSplitters') security.declareProtected(manage_zcatalog_entries, 'availableSplitters')
def availableSplitters(self): def availableSplitters(self):
""" splitter we can add """ """ splitter we can add """
# This import will trigger a deprecation warning about TextIndex
from Products.PluginIndexes.TextIndex import Splitter
return Splitter.availableSplitters return Splitter.availableSplitters
......
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