exposing me too to users?
Gavin Panella
gavin.panella at canonical.com
Sat Nov 15 13:30:14 GMT 2008
On Sat, 15 Nov 2008 11:34:00 +0530
shirish <shirishag75 at gmail.com> wrote:
> Hi all,
> I would be just happy with having raw numbers of people who have the
> same bug.
Hi shirish,
If you're a user of the Launchpad API then you can get hold of these
numbers as the users_affected_count and users_unaffected_count
properties of a bug.
When using launchpadlib that translates to something like:
>>> from launchpadlib.launchpad import (
... Launchpad, EDGE_SERVICE_ROOT)
>>> launchpad = Launchpad.get_token_and_login(
... 'just testing', EDGE_SERVICE_ROOT)
>>> bug = launchpad.bugs[297158]
>>> bug.users_affected_count
1
>>> bug.users_unaffected_count
0
I hope that's useful to you.
Gavin.
More information about the launchpad-users
mailing list