From 251ce7d166fa901b33f20cf46315ec464e3eac64 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 19 Dec 2009 21:14:30 +0000 Subject: - Add two new APIs to the ``repoze.bfg.configuration.Configurator`` class: ``add_adapter`` and ``add_utility``. These, respectively, perform the same functions as the ``registerAdapter`` and ``registerUtility`` functions of a ZCA registry. They were added to allow for a more consistent testing API for applications that make use of the ZCA directly. - Cause the ``adapter``, ``utility``, and ``subscriber`` ZCML directives to use a ``Configurator`` instance and associated configurator APIs rather than a ZCA registry directly. --- docs/api/configuration.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/api/configuration.rst b/docs/api/configuration.rst index 5e16ac13b..f4095a3db 100644 --- a/docs/api/configuration.rst +++ b/docs/api/configuration.rst @@ -33,3 +33,7 @@ .. automethod:: set_notfound_view(view=None, attr=None, renderer=None, wrapper=None) + .. automethod:: add_adapter + + .. automethod:: add_utility + -- cgit v1.2.3