Brian, thanks for your suggestion.
This patch against r62 changes the behavior as followed:
* bug.subscriptions returns all subscribers
* bug.get_subscriptions_category(<cat>) returns all subscribers in a given
category, where <cat> is either "directly", "notified" or "duplicates"
* user added with bug.subscriptions.add(<user>) are automatically in "directly"
Example:
>>> b = Bug(153846)
>>> b.subscriptions
set([<user ubuntu-bugs (Ubuntu Bugs)>, <user thekorn (Markus Korn)>, <user
bughelper-dev (Bughelper Developers)>])
>>> b.get_subscriptions_category("directly")
set([<user thekorn (Markus Korn)>])
>>> b.get_subscriptions_category("notified")
set([<user ubuntu-bugs (Ubuntu Bugs)>, <user bughelper-dev (Bughelper
Developers)>])
>>> b.get_subscriptions_category("duplicates")
set([])
>>> b.subscriptions.add("foobartestuser")
>>> b.get_subscriptions_category("directly")
set(['foobartestuser', <user thekorn (Markus Korn)>])
>>>
To use this patch please revert the changes from the first one.
Markus
** Attachment added: "153846_parse_all_subscriptions_2.diff"
http://launchpadlibrarian.net/10058477/153846_parse_all_subscriptions_2.diff
--
bug.subsribers: also parse 'also notified' and 'from duplicates'
https://bugs.launchpad.net/bugs/153846
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs