changeset 97 | 02671458ec76 |
parent 72 | 9049384a2bd4 |
child 150 | 09f49ce8dfd8 |
--- a/src/pyams_utils/context.py Mon Jun 19 16:26:33 2017 +0200 +++ b/src/pyams_utils/context.py Mon Jun 19 17:29:46 2017 +0200 @@ -26,6 +26,8 @@ This selector can be used as a subscriber predicate to define an interface that the context must support for the event to be applied:: + .. code-block:: python + from pyams_utils.interfaces.site import ISiteRoot @subscriber(IObjectModifiedEvent, context_selector=ISiteRoot)