summaryrefslogtreecommitdiff
path: root/repoze/bfg/zcml.py
diff options
context:
space:
mode:
Diffstat (limited to 'repoze/bfg/zcml.py')
-rw-r--r--repoze/bfg/zcml.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/repoze/bfg/zcml.py b/repoze/bfg/zcml.py
index b5de0584a..a38c39ae1 100644
--- a/repoze/bfg/zcml.py
+++ b/repoze/bfg/zcml.py
@@ -4,9 +4,11 @@ from os.path import realpath
import time
from zope.configuration import xmlconfig
+
+from zope.component import getGlobalSiteManager
import zope.configuration.config
-from zope.component.zcml import handler
+
from zope.component.interface import provideInterface
from zope.configuration.exceptions import ConfigurationError
from zope.configuration.fields import GlobalObject
@@ -22,6 +24,10 @@ from repoze.bfg.path import package_path
from repoze.bfg.security import ViewPermissionFactory
+def handler(methodName, *args, **kwargs):
+ method = getattr(getGlobalSiteManager(), methodName)
+ method(*args, **kwargs)
+
class Uncacheable(object):
""" Include in discriminators of actions which are not cacheable """
pass