summaryrefslogtreecommitdiff
path: root/src/zope/component/zcml.py
diff options
context:
space:
mode:
authorFabio Tranchitella <fabio@tranchitella.eu>2010-03-04 19:49:14 +0000
committerFabio Tranchitella <fabio@tranchitella.eu>2010-03-04 19:49:14 +0000
commitd857e3caa6f6a5da8e001858031f76f5e39c2761 (patch)
tree9377e11276e579eea1ac476e38e1b1e128a76871 /src/zope/component/zcml.py
parentc8b74e37edcd00d48bc71148cb88dd914a9e18a7 (diff)
downloadzope-component-d857e3caa6f6a5da8e001858031f76f5e39c2761.tar.gz
The ZCML directives provided by zope.component now register the components in
the registry returned by getSiteManager instead of the global registry. This allows the hooking of the getSiteManager method before the load of a ZCML file to register the components in a custom registry.
Diffstat (limited to 'src/zope/component/zcml.py')
-rw-r--r--src/zope/component/zcml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zope/component/zcml.py b/src/zope/component/zcml.py
index 333a0ae..f6a2752 100644
--- a/src/zope/component/zcml.py
+++ b/src/zope/component/zcml.py
@@ -45,7 +45,7 @@ def check_security_support():
"supported because zope.security is not available")
def handler(methodName, *args, **kwargs):
- method = getattr(zope.component.getGlobalSiteManager(), methodName)
+ method = getattr(zope.component.getSiteManager(), methodName)
method(*args, **kwargs)
class IBasicComponentInformation(zope.interface.Interface):