From 3380eaebb63c1e6a416dc4a39818ec220019af94 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 23 Dec 2008 19:11:29 +0000 Subject: - The BFG ``view`` ZCML directive no longer calls ``zope.component.interface.provideInterface`` for the ``for`` interface. We don't support ``provideInterface`` in BFG because it mutates the global registry. --- repoze/bfg/zcml.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'repoze/bfg/zcml.py') diff --git a/repoze/bfg/zcml.py b/repoze/bfg/zcml.py index fb31e107d..05b332baa 100644 --- a/repoze/bfg/zcml.py +++ b/repoze/bfg/zcml.py @@ -10,7 +10,6 @@ from zope.component import getSiteManager from zope.component import adaptedBy import zope.configuration.config -from zope.component.interface import provideInterface from zope.configuration.exceptions import ConfigurationError from zope.configuration.fields import GlobalObject @@ -45,13 +44,6 @@ def view(_context, if not view: raise ConfigurationError('"view" attribute was not specified') - if for_ is not None: - _context.action( - discriminator = None, - callable = provideInterface, - args = ('', for_) - ) - # adapts() decorations may be used against either functions or # class instances if isinstance(view, types.FunctionType): -- cgit v1.2.3