summaryrefslogtreecommitdiff
path: root/docs/api/configuration.rst
blob: 7b411b92ddf6ae9db0166a335a9d8fc586f2d0bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.. _configuration_module:

:mod:`repoze.bfg.configuration`
-------------------------------

.. automodule:: repoze.bfg.configuration

  .. autoclass:: Configurator(registry=None, package=None, settings=None, root_factory=None, authentication_policy=None, authorization_policy=None, renderers=DEFAULT_RENDERERS, debug_logger=None)

     .. attribute:: registry

        The :term:`application registry` which holds the configuration
        associated with this configurator.

     .. automethod:: begin

     .. automethod:: end

     .. automethod:: hook_zca()

     .. automethod:: unhook_zca()

     .. automethod:: setup_registry(settings=None, root_factory=None, authentication_policy=None, renderers=DEFAULT_RENDERERS, debug_logger=None)

     .. automethod:: add_renderer(name, factory)

     .. automethod:: add_route

     .. automethod:: add_static_view(name, path, cache_max_age=3600)

     .. automethod:: add_settings

     .. automethod:: add_subscriber

     .. automethod:: add_translation_dirs

     .. automethod:: add_view

     .. automethod:: load_zcml(spec)

     .. automethod:: make_wsgi_app()

     .. automethod:: override_resource(to_override, override_with)

     .. automethod:: scan(package=None, categories=None)

     .. automethod:: set_forbidden_view(view=None, attr=None, renderer=None, wrapper=None)

     .. automethod:: set_notfound_view(view=None, attr=None, renderer=None, wrapper=None)

     .. automethod:: set_locale_negotiator

     .. automethod:: testing_securitypolicy

     .. automethod:: testing_models

     .. automethod:: testing_add_subscriber

     .. automethod:: testing_add_template