l.r.i.k.IKarmaActionSet(Interface) : interface documentation

Part of lp.registry.interfaces.karma View In Hierarchy

The set of actions that gives karma to a Person.
Attribute title Title
Method __iter__ Iterate over all Karma Actions.
Method getByName Return the KarmaAction with the given name.
Method selectByCategory Return all KarmaAction objects of the given category.
Method selectByCategoryAndPerson Return all KarmaAction objects of the given category if <person>
title =
Title
def __iter__():
Iterate over all Karma Actions.
def getByName(name, default=None):
Return the KarmaAction with the given name.

Return the default value if there's no such KarmaAction.

def selectByCategory(category):
Return all KarmaAction objects of the given category.
def selectByCategoryAndPerson(category, person, orderBy=None):
Return all KarmaAction objects of the given category if <person> performed these actions at least once.

<orderBy> can be either a string with the column name you want to sort or a list of column names as strings. If no orderBy is specified the results will be ordered using the default ordering specified in KarmaAction._defaultOrder.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.