# HG changeset patch # User Thierry Florac # Date 1518076552 -3600 # Node ID 7a46f121e6e520271d009033c99a66d046ee420b # Parent 6136b4554c19b92c430e9bbf5e831ee5362502e5 Updated global registry access diff -r 6136b4554c19 -r 7a46f121e6e5 src/pyams_workflow/workflow.py --- a/src/pyams_workflow/workflow.py Fri Jan 26 17:31:56 2018 +0100 +++ b/src/pyams_workflow/workflow.py Thu Feb 08 08:55:52 2018 +0100 @@ -22,12 +22,11 @@ # import packages from pyams_utils.adapter import adapter_config -from pyams_utils.registry import get_utility +from pyams_utils.registry import get_utility, get_global_registry from pyams_utils.request import check_request, query_request from pyams_utils.traversing import get_parent from pyams_utils.vocabulary import vocabulary_config from pyramid.httpexceptions import HTTPUnauthorized -from zope.component.globalregistry import getGlobalSiteManager from zope.componentvocabulary.vocabulary import UtilityVocabulary from zope.interface import implementer from zope.lifecycleevent import ObjectModifiedEvent @@ -194,7 +193,7 @@ transition.destination, transition, comment) # change state of context or new object - registry = getGlobalSiteManager() + registry = get_global_registry() registry.notify(event) # send modified event for original or new object if result is None: