~ubuntu-branches/ubuntu/trusty/horizon/trusty-proposed

« back to all changes in this revision

Viewing changes to openstack_dashboard/dashboards/admin/roles/tables.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-12-05 14:39:15 UTC
  • mto: This revision was merged to the branch mainline in revision 61.
  • Revision ID: package-import@ubuntu.com-20131205143915-5u8q3kdxdw8e7maz
Tags: upstream-2014.1~b1
ImportĀ upstreamĀ versionĀ 2014.1~b1

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
 
58
58
class RoleFilterAction(tables.FilterAction):
59
59
    def filter(self, table, roles, filter_string):
60
 
        """ Naive case-insensitive search """
 
60
        """Naive case-insensitive search."""
61
61
        q = filter_string.lower()
62
62
        return [role for role in roles
63
63
                if q in role.name.lower()]