Michael Merickel
2011-08-10 fecefff5f0c3a6aaafdd43d902aaed15edb8559e
commit | author | age
17cf32 1 .. _configuration_module:
CM 2
d7f259 3 :mod:`pyramid.config`
CM 4 ---------------------
17cf32 5
d7f259 6 .. automodule:: pyramid.config
17cf32 7
d7f259 8   .. autoclass:: Configurator(registry=None, package=None, settings=None, root_factory=None, authentication_policy=None, authorization_policy=None, renderers=DEFAULT_RENDERERS, debug_logger=None, locale_negotiator=None, request_factory=None, renderer_globals_factory=None, default_permission=None, session_factory=None, autocommit=False)
17cf32 9
624aa8 10      .. attribute:: registry
CM 11
12         The :term:`application registry` which holds the configuration
13         associated with this configurator.
14
bc857e 15      .. automethod:: begin
CM 16
17      .. automethod:: end
18
865c1d 19      .. automethod:: hook_zca
7696aa 20
865c1d 21      .. automethod:: unhook_zca
7696aa 22
250c02 23      .. automethod:: get_settings
CM 24
d7f259 25      .. automethod:: commit
CM 26
27      .. automethod:: action
28
29      .. automethod:: include
30
14e91b 31      .. automethod:: add_directive
CM 32
39480c 33      .. automethod:: with_package
CM 34
35      .. automethod:: maybe_dotted
36
4c4f08 37      .. automethod:: absolute_asset_spec
ec55db 38
250c02 39      .. automethod:: setup_registry(settings=None, root_factory=None, authentication_policy=None, renderers=DEFAULT_RENDERERS, debug_logger=None, locale_negotiator=None, request_factory=None, renderer_globals_factory=None)
7fd26c 40
5453b7 41      .. automethod:: add_renderer(name, factory)
17cf32 42
1a6fc7 43      .. automethod:: add_response_adapter
CM 44
13c923 45      .. automethod:: add_route
CM 46
feceff 47      .. automethod:: add_static_view(name, path, cache_max_age=3600, permission=NO_PERMISSION_REQUIRED)
17cf32 48
0adc2f 49      .. automethod:: add_settings
CM 50
13c923 51      .. automethod:: add_subscriber
CM 52
7534ba 53      .. automethod:: add_translation_dirs
CM 54
13c923 55      .. automethod:: add_view
bdd2b1 56
8cc399 57      .. automethod:: derive_view
CM 58
17cf32 59      .. automethod:: make_wsgi_app()
CM 60
4c4f08 61      .. automethod:: override_asset(to_override, override_with)
5453b7 62
c7d048 63      .. automethod:: scan
5453b7 64
c7d048 65      .. automethod:: set_forbidden_view
5453b7 66
c7d048 67      .. automethod:: set_notfound_view
5453b7 68
7534ba 69      .. automethod:: set_locale_negotiator
CM 70
e25a70 71      .. automethod:: set_default_permission
CM 72
968209 73      .. automethod:: set_session_factory
CM 74
af7a1d 75      .. automethod:: set_request_factory
CM 76
b7f33b 77      .. automethod:: set_renderer_globals_factory(factory)
da358e 78
cae85d 79      .. automethod:: set_view_mapper
CM 80
131132 81      .. automethod:: add_tween
af2323 82
f0d12e 83      .. automethod:: testing_securitypolicy
251ce7 84
92c3e5 85      .. automethod:: testing_resources
251ce7 86
f0d12e 87      .. automethod:: testing_add_subscriber
CM 88
250c02 89      .. automethod:: testing_add_renderer
7696aa 90
37e3be 91   .. attribute:: global_registries
MM 92
c515d7 93      The set of registries that have been created for :app:`Pyramid`
CM 94      applications, one per each call to
7a5f56 95      :meth:`pyramid.config.Configurator.make_wsgi_app` in the current
CM 96      process. The object itself supports iteration and has a ``last``
97      property containing the last registry loaded.
37e3be 98
MM 99      The registries contained in this object are stored as weakrefs,
100      thus they will only exist for the lifetime of the actual
101      applications for which they are being used.
102