diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-12-19 23:05:23 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-12-19 23:05:23 +0000 |
| commit | f0d12ea82e494c13ce504b73a13c6967ab8fb3e1 (patch) | |
| tree | 53574884314d3cf8c86494f13e90ce6db5b706a8 /docs | |
| parent | 0adc2fe61c2e225dfa1bcf9a3d814ba394e95ce7 (diff) | |
| download | pyramid-f0d12ea82e494c13ce504b73a13c6967ab8fb3e1.tar.gz pyramid-f0d12ea82e494c13ce504b73a13c6967ab8fb3e1.tar.bz2 pyramid-f0d12ea82e494c13ce504b73a13c6967ab8fb3e1.zip | |
- 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.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api/configuration.rst | 11 |
1 files changed, 9 insertions, 2 deletions
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 |
