summaryrefslogtreecommitdiff
path: root/horizon/dashboards/nova/containers/tables.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-03-13 19:23:23 +0000
committerGerrit Code Review <review@openstack.org>2012-03-13 19:23:23 +0000
commit24ab51c02ad85ca706c7315759bd1422bceec3f8 (patch)
tree8cdd8fdda3e23486721857b4152b0f2629af0d4f /horizon/dashboards/nova/containers/tables.py
parenta04442705b44f1a52fa97c912b5c5a71f283a150 (diff)
parentf5efe118c90a15a4c281f0a9151078196454f033 (diff)
downloadtuskar-ui-24ab51c02ad85ca706c7315759bd1422bceec3f8.tar.gz
Merge "fix filter form for container objects list"
Diffstat (limited to 'horizon/dashboards/nova/containers/tables.py')
-rw-r--r--horizon/dashboards/nova/containers/tables.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/horizon/dashboards/nova/containers/tables.py b/horizon/dashboards/nova/containers/tables.py
index eb23d90f..aa58f763 100644
--- a/horizon/dashboards/nova/containers/tables.py
+++ b/horizon/dashboards/nova/containers/tables.py
@@ -149,17 +149,16 @@ class DownloadObject(tables.LinkAction):
class ObjectFilterAction(tables.FilterAction):
- def filter(self, table, users, filter_string):
+ def filter(self, table, objects, filter_string):
""" Really naive case-insensitive search. """
- # FIXME(gabriel): This should be smarter. Written for demo purposes.
q = filter_string.lower()
- def comp(user):
- if q in user.name.lower() or q in user.email.lower():
+ def comp(object):
+ if q in object.name.lower():
return True
return False
- return filter(comp, users)
+ return filter(comp, objects)
def get_size(obj):