~ubuntu-branches/ubuntu/trusty/python-keystoneclient/trusty-proposed

« back to all changes in this revision

Viewing changes to keystoneclient/v3/groups.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-05-29 13:07:56 UTC
  • mfrom: (1.1.19)
  • Revision ID: package-import@ubuntu.com-20130529130756-3h7dh05a39n9uvq5
Tags: 1:0.2.4-0ubuntu1
* New upstream release. 
* debian/control: Add python-d2to1 and python-pbr
* debian/control: Add testrepository, dropped python-nose
* debian/control: Add python-six

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
            domain_id=base.getid(domain),
56
56
            description=description)
57
57
 
58
 
    def list(self, user=None):
 
58
    def list(self, user=None, **kwargs):
 
59
        """List groups.
 
60
 
 
61
        If user is provided, then filter groups with
 
62
        that attribute.
 
63
 
 
64
        If ``**kwargs`` are provided, then filter groups with
 
65
        attributes matching ``**kwargs``.
 
66
        """
59
67
        if user:
60
68
            base_url = '/users/%s' % base.getid(user)
61
69
        else:
62
70
            base_url = None
63
71
        return super(GroupManager, self).list(
64
 
            base_url=base_url)
 
72
            base_url=base_url,
 
73
            **kwargs)
65
74
 
66
75
    def get(self, group):
67
76
        return super(GroupManager, self).get(