src/pyams_content_es/include.py
changeset 44 84d2932b293f
parent 37 7063ab78b465
child 48 4575175f6458
--- a/src/pyams_content_es/include.py	Fri Jan 26 17:23:06 2018 +0100
+++ b/src/pyams_content_es/include.py	Thu Feb 08 08:52:49 2018 +0100
@@ -26,10 +26,10 @@
 
 # import packages
 from pyams_content_es.process import ContentIndexerProcess, ContentIndexerMessageHandler
+from pyams_utils.registry import get_global_registry
 from pyams_zmq.process import process_exit_func
 from pyramid.events import subscriber
 from pyramid.settings import asbool
-from zope.component.globalregistry import getGlobalSiteManager
 
 
 def include_package(config):
@@ -55,7 +55,7 @@
     if sys.argv[0].endswith('pyams_upgrade'):
         return
 
-    registry = getGlobalSiteManager()
+    registry = get_global_registry()
     settings = registry.settings
     start_handler = asbool(settings.get(INDEXER_STARTER_KEY, False))
     if start_handler: