blob: 9f130b7dc8a53fffb0e2a4edd399ccc1cdd5a343 (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
.. _configuration_module:
:mod:`pyramid.config`
---------------------
.. automodule:: pyramid.config
.. autoclass:: Configurator
.. 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:: get_settings
.. automethod:: commit
.. automethod:: action
.. automethod:: include
.. automethod:: add_directive
.. automethod:: with_package
.. automethod:: maybe_dotted
.. automethod:: absolute_asset_spec
.. automethod:: setup_registry
.. automethod:: add_renderer
.. automethod:: add_response_adapter
.. automethod:: add_route
.. automethod:: add_static_view(name, path, cache_max_age=3600, permission=NO_PERMISSION_REQUIRED)
.. automethod:: add_settings
.. automethod:: add_subscriber
.. automethod:: add_translation_dirs
.. automethod:: add_view
.. automethod:: add_tween
.. automethod:: derive_view
.. automethod:: make_wsgi_app()
.. automethod:: override_asset(to_override, override_with)
.. automethod:: scan
.. automethod:: set_locale_negotiator
.. automethod:: set_default_permission
.. automethod:: set_session_factory
.. automethod:: set_request_factory
.. automethod:: set_root_factory
.. automethod:: set_view_mapper
.. automethod:: set_authentication_policy
.. automethod:: set_authorization_policy
.. automethod:: testing_securitypolicy
.. automethod:: testing_resources
.. automethod:: testing_add_subscriber
.. automethod:: testing_add_renderer
.. automethod:: set_forbidden_view
.. automethod:: set_notfound_view
.. automethod:: set_renderer_globals_factory(factory)
.. attribute:: introspector
The :term:`introspector` associated with this configuration.
.. attribute:: introspectable
A shortcut attribute which points to the
:class:`pyramid.registry.Introspectable` class (used during
directives to provide introspection to actions).
.. attribute:: global_registries
The set of registries that have been created for :app:`Pyramid`
applications, one per each call to
:meth:`pyramid.config.Configurator.make_wsgi_app` in the current
process. The object itself supports iteration and has a ``last``
property containing the last registry loaded.
The registries contained in this object are stored as weakrefs,
thus they will only exist for the lifetime of the actual
applications for which they are being used.
|