From 5aaec679e1fdcd52b056714f831b602c2db3f7bb Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 27 May 2009 23:57:01 +0000 Subject: - Removed backwards compatibility alias for ``repoze.bfg.interfaces.IRootPolicy`` (deprecated since 0.6.2). It must be imported as ``repoze.bfg.interfaces.IRootFactory`` now. - Removed backwards compatibility alias for ``repoze.bfg.interfaces.ITemplate`` (deprecated since 0.4.4). It must be imported as ``repoze.bfg.interfaces.ITemplateRenderer`` now. - Removed backwards compatibility alias for ``repoze.bfg.interfaces.ITemplateFactory`` (deprecated since 0.4.4). It must be imported as ``repoze.bfg.interfaces.ITemplateRendererFactory`` now. - Removed backwards compatibility alias for ``repoze.bfg.chameleon_zpt.ZPTTemplateFactory`` (deprecated since 0.4.4). This must be imported as ``repoze.bfg.ZPTTemplateRenderer`` now. --- repoze/bfg/interfaces.py | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'repoze/bfg/interfaces.py') diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py index 2b00ac18f..c4bafbe20 100644 --- a/repoze/bfg/interfaces.py +++ b/repoze/bfg/interfaces.py @@ -1,8 +1,6 @@ from zope.interface import Attribute from zope.interface import Interface -from zope.deprecation import deprecated - from zope.component.interfaces import IObjectEvent class IRequestFactory(Interface): @@ -51,12 +49,6 @@ class IRootFactory(Interface): def __call__(environ): """ Return a root object """ -IRootPolicy = IRootFactory -deprecated('IRootPolicy', - '(repoze.bfg.interfaces.IRootPolicy should now be imported ' - 'as repoze.bfg.interfaces.IRootFactory)', - ) - class ITraverser(Interface): def __call__(environ): """ Return a dictionary with the keys ``root``, ``context``, @@ -91,22 +83,10 @@ class ITemplateRenderer(Interface): passed in as arguments and return the result (a string or unicode object) """ -ITemplate = ITemplateRenderer -deprecated('ITemplate', - '(repoze.bfg.interfaces.ITemplate should now be imported ' - 'as repoze.bfg.interfaces.ITemplateRenderer)', - ) - class ITemplateRendererFactory(Interface): def __call__(path, auto_reload=False): """ Return an object that implements ``ITemplateRenderer`` """ -ITemplateFactory = ITemplateRendererFactory -deprecated('ITemplateFactory', - '(repoze.bfg.interfaces.ITemplateFactory should now be imported ' - 'as repoze.bfg.interfaces.ITemplateRendererFactory)', - ) - class ISecurityPolicy(Interface): """ A utility that provides a mechanism to check authorization using authentication data """ -- cgit v1.2.3