Part of lp.testing.karma View In Hierarchy
Known subclasses: lp.testing.karma.KarmaAssignedEventListener
Install with register (and don't forget to uninstall later with
unregister).
A list of karma events is accumulated in the karma_events
property.
| Method | __init__ | Create a KarmaRecorder, but do not activate it yet. |
| Method | filter | Does karma match our filters? |
| Method | record | Overridable: record the assignment of karma. |
| Method | receive | Process a karma event. |
| Method | register_listener | Register listener. Must be `unregister`ed later. |
| Method | unregister_listener | Unregister listener after register. |
| Method | _filterFor | Does an event property value pass our filter for that property? |
KarmaRecorder, but do not activate it yet.| Parameters | person | If given, record only karma for this Person. |
| action_name | If given, record only karma with this action name (e.g. questionasked, sponsoruploadaccepted, bugfixed). | |
| product | If given, record only karma related to this
Product. | |
| distribution | If given, record only karma related to this
Distribution. | |
| sourcepackagename | If given, record only karma related to
this SourcePackageName. |
The default action to record the karma object in
self.karma_events, but feel free to override this with your
own handler.