From f0d12ea82e494c13ce504b73a13c6967ab8fb3e1 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 19 Dec 2009 23:05:23 +0000 Subject: - Add four new testing-related APIs to the ``repoze.bfg.configuration.Configurator`` class: ``testing_securitypolicy``, ``testing_models``, ``testing_add_subscriber``, and ``testing_add_template``. These were added in order to provide more direct access to the functionality of the ``repoze.bfg.testing`` APIs named ``registerDummySecurityPolicy``, ``registerModels``, ``registerEventListener``, and ``registerTemplateRenderer`` when a configurator is used. The ``testing`` APIs named are nominally deprecated (although they will likely remain around "forever", as they are in heavy use in the wild). - Doc-deprecated most helper functions in the ``repoze.bfg.testing`` module. These helper functions likely won't be removed any time soon, nor will they generate a warning any time soon, due to their heavy use in the wild, but equivalent behavior exists in methods of a Configurator. --- docs/api/configuration.rst | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/api/configuration.rst b/docs/api/configuration.rst index beb86f7ef..95f3a7a4c 100644 --- a/docs/api/configuration.rst +++ b/docs/api/configuration.rst @@ -11,6 +11,8 @@ .. automethod:: end + .. automethod:: add_adapter + .. automethod:: add_renderer(name, factory) .. automethod:: add_route @@ -21,6 +23,8 @@ .. automethod:: add_subscriber + .. automethod:: add_utility + .. automethod:: add_view .. automethod:: load_zcml(spec) @@ -35,7 +39,10 @@ .. automethod:: set_notfound_view(view=None, attr=None, renderer=None, wrapper=None) - .. automethod:: add_adapter + .. automethod:: testing_securitypolicy - .. automethod:: add_utility + .. automethod:: testing_models + + .. automethod:: testing_add_subscriber + .. automethod:: testing_add_template -- cgit v1.2.3