From 8e70469adca5a9c0bbf97ad51d95cd94c091ffe5 Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Sat, 27 Aug 2016 11:39:31 +0100 Subject: [PATCH] FixedFilterAction.categorize: Make variable name generic and explain more in docs This appears to have been partly made generic from openstack_dashboard's project images table - but not completely. Change-Id: Ib78092d56108269a0ae39df95e232312a2352e32 --- horizon/tables/actions.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/horizon/tables/actions.py b/horizon/tables/actions.py index 865c85fefa..1459bd5242 100644 --- a/horizon/tables/actions.py +++ b/horizon/tables/actions.py @@ -579,11 +579,15 @@ class FixedFilterAction(FilterAction): """ return [] - def categorize(self, table, images): - """Override to separate images into categories. + def categorize(self, table, rows): + """Override to separate rows into categories. + + To have filtering working properly on the client, each row will need + CSS class(es) beginning with 'category-', followed by the value of the + fixed button. Return a dict with a key for the value of each fixed button, - and a value that is a list of images in that category. + and a value that is a list of rows in that category. """ return {}