File: events.rst

package info (click to toggle)
python-pyramid 1.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,112 kB
  • ctags: 8,169
  • sloc: python: 41,764; makefile: 111; sh: 17
file content (40 lines) | stat: -rw-r--r-- 790 bytes parent folder | download
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
.. _events_module:

:mod:`pyramid.events`
--------------------------

.. automodule:: pyramid.events

Functions
~~~~~~~~~

.. autofunction:: subscriber

.. _event_types:

Event Types
~~~~~~~~~~~

.. autoclass:: ApplicationCreated

.. autoclass:: NewRequest

.. autoclass:: ContextFound

.. autoclass:: NewResponse

.. autoclass:: BeforeRender
   :members:
   :inherited-members:
   :exclude-members: update

   .. method:: update(E, **F)

      Update D from dict/iterable E and F. If E has a .keys() method, does:
      for k in E: D[k] = E[k] If E lacks .keys() method, does: for (k, v) in
      E: D[k] = v.  In either case, this is followed by: for k in F: D[k] =
      F[k].

See :ref:`events_chapter` for more information about how to register
code which subscribes to these events.