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

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

No interface docstring
Method new Create and return a new KarmaCache.
Method updateKarmaValue Update the karmavalue attribute of the KarmaCache with the given
def new(value, person_id, category_id, product_id=None, distribution_id=None, sourcepackagename_id=None, project_id=None):
Create and return a new KarmaCache.

We expect the objects IDs (instead of the real objects) here because foaf-update-karma-cache.py (our only client) only has them.

def updateKarmaValue(value, person_id, category_id, product_id=None, distribution_id=None, sourcepackagename_id=None, projectgroup_id=None):
Update the karmavalue attribute of the KarmaCache with the given person_id, category_id, product_id, distribution_id, sourcepackagename_id, and projectgroup_id.

Raise NotFoundError if there's no KarmaCache with those attributes.

We expect the objects IDs (instead of the real objects) here because foaf-update-karma-cache.py (our only client) only has them.

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