diff options
| author | Amos Latteier <amos@latteier.com> | 2013-08-12 17:00:29 -0400 |
|---|---|---|
| committer | Amos Latteier <amos@latteier.com> | 2013-08-12 17:00:29 -0400 |
| commit | 970dfae46bb398e862f57d89c3f6efe10c45e715 (patch) | |
| tree | c7cca876345443a75f3ee81790e8a18b2009c7db /docs/narr/events.rst | |
| parent | 29ab2b964164844daa012c3e80d276f49ccbe217 (diff) | |
| download | pyramid-970dfae46bb398e862f57d89c3f6efe10c45e715.tar.gz pyramid-970dfae46bb398e862f57d89c3f6efe10c45e715.tar.bz2 pyramid-970dfae46bb398e862f57d89c3f6efe10c45e715.zip | |
Mention subscriber predicates.
Diffstat (limited to 'docs/narr/events.rst')
| -rw-r--r-- | docs/narr/events.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/narr/events.rst b/docs/narr/events.rst index 485247afc..5004a1787 100644 --- a/docs/narr/events.rst +++ b/docs/narr/events.rst @@ -190,8 +190,10 @@ Some Pyramid applications choose to define custom events classes in an ``events`` module. You can subscribe to custom events in the same way that you subscribe -to Pyramid events -- either imperatively or with a decorator. Here's -an example of subscribing to a custom event with a decorator: +to Pyramid events -- either imperatively or with a decorator. You can +also use custom events with :ref:`subscriber predicates +<subscriber_predicates>`. Here's an example of subscribing to a custom +event with a decorator: .. code-block:: python :linenos: |
