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

« back to all changes in this revision

Viewing changes to keystoneclient/v3/projects.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:
58
58
            description=description,
59
59
            enabled=enabled)
60
60
 
61
 
    def list(self, domain=None, user=None):
 
61
    def list(self, domain=None, user=None, **kwargs):
 
62
        """List projects.
 
63
 
 
64
        If domain or user are provided, then filter projects with
 
65
        those attributes.
 
66
 
 
67
        If ``**kwargs`` are provided, then filter projects with
 
68
        attributes matching ``**kwargs``.
 
69
        """
62
70
        base_url = '/users/%s' % base.getid(user) if user else None
63
71
        return super(ProjectManager, self).list(
64
72
            base_url=base_url,
65
 
            domain_id=base.getid(domain))
 
73
            domain_id=base.getid(domain),
 
74
            **kwargs)
66
75
 
67
76
    def get(self, project):
68
77
        return super(ProjectManager, self).get(