From d4764ea7aeaa594af9091b00b132a1ffd339bf53 Mon Sep 17 00:00:00 2001 From: Cindy Lu Date: Mon, 12 Jan 2015 14:38:56 -0800 Subject: [PATCH] some FilterAction attributes don't show in docs Due to missing ':'. Also add FixedFilterAction to docs. Change-Id: I2b2d07a7865d3073c7648a82ef653673ebae2bf9 Closes-Bug: #1409892 --- doc/source/ref/tables.rst | 3 +++ horizon/tables/actions.py | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/source/ref/tables.rst b/doc/source/ref/tables.rst index 1947dc9600..ea371fc1f3 100644 --- a/doc/source/ref/tables.rst +++ b/doc/source/ref/tables.rst @@ -81,6 +81,9 @@ Actions .. autoclass:: FilterAction :members: +.. autoclass:: FixedFilterAction + :members: + .. autoclass:: BatchAction :members: diff --git a/horizon/tables/actions.py b/horizon/tables/actions.py index d231d8136a..7953763040 100644 --- a/horizon/tables/actions.py +++ b/horizon/tables/actions.py @@ -422,13 +422,13 @@ class FilterAction(BaseAction): A string representing the name of the request parameter used for the search term. Default: ``"q"``. - .. attribute: filter_type + .. attribute:: filter_type A string representing the type of this filter. If this is set to ``"server"`` then ``filter_choices`` must also be provided. Default: ``"query"``. - .. attribute: filter_choices + .. attribute:: filter_choices Required for server type filters. A tuple of tuples representing the filter options. Tuple composition should evaluate to (string, string, @@ -439,7 +439,7 @@ class FilterAction(BaseAction): type filters in general will need to be performed in the filter method. By default this attribute is not provided. - .. attribute: needs_preloading + .. attribute:: needs_preloading If True, the filter function will be called for the initial GET request with an empty ``filter_string``, regardless of the