From 6c15621fbde10fca1e3e892a32a058784869610f Mon Sep 17 00:00:00 2001 From: Brant Knudson Date: Sun, 19 Jul 2015 10:38:48 -0500 Subject: [PATCH] Docs link to ACTIONS The reference to the ACTIONS property should render as a link to the property so that it's easier for users to figure out what the values are. Change-Id: I67cce0cd90e051852447a24263b026ce917ad237 --- keystone/notifications.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/keystone/notifications.py b/keystone/notifications.py index e58a9a7ce4..02d73acdd7 100644 --- a/keystone/notifications.py +++ b/keystone/notifications.py @@ -57,6 +57,7 @@ _ACTIONS = collections.namedtuple( 'created, deleted, disabled, updated, internal') ACTIONS = _ACTIONS(created='created', deleted='deleted', disabled='disabled', updated='updated', internal='internal') +"""The actions on resources.""" CADF_TYPE_MAP = { 'group': taxonomy.SECURITY_GROUP, @@ -301,7 +302,7 @@ def listener(cls): is a dictionary where the key is the type of event and the value is a dictionary containing a mapping of resource types to callback(s). - ``keystone.notifications.ACTIONS`` contains constants for the currently + :data:`.ACTIONS` contains constants for the currently supported events. There is currently no single place to find constants for the resource types.