From f077653f208f6f7c89c78c87c2abb0ea7031dbc0 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 28 Jul 2010 03:00:58 +0000 Subject: - A ``repoze.bfg.events.subscriber`` decorator was added. This decorator decorates module-scope functions, which are then treated as event listeners after a scan() is performed. See the Events narrative documentation chapter and the ``repoze.bfg.events`` module documentation for more information. --- docs/api/events.rst | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'docs/api/events.rst') diff --git a/docs/api/events.rst b/docs/api/events.rst index bb1ba1cf5..cad199be3 100644 --- a/docs/api/events.rst +++ b/docs/api/events.rst @@ -5,11 +5,19 @@ .. automodule:: repoze.bfg.events - .. autoclass:: NewRequest +Functions +~~~~~~~~~ - .. autoclass:: NewResponse +.. autofunction:: subscriber - .. autoclass:: WSGIApplicationCreatedEvent +Event Types +~~~~~~~~~~~ + +.. autoclass:: NewRequest + +.. autoclass:: NewResponse + +.. autoclass:: WSGIApplicationCreatedEvent See :ref:`events_chapter` for more information about how to register code which subscribes to these events. -- cgit v1.2.3