l.a.karma : module documentation

Part of lp.answers

Karma for the Answer Tracker.
Function assignKarmaUsingQuestionContext Assign Karma with the given actionname to the given person.
Function question_created Assign karma to the user which created <question>.
Function question_modified Check changes made to <question> and assign karma to user if needed.
Function question_comment_added Assign karma to the user which added <questionmessage>.
Function get_karma_context_parameters Return the proper karma context parameters based on the object.
Function faq_created Assign karma to the user who created the FAQ.
Function faq_edited Assign karma to user who edited a FAQ.
def assignKarmaUsingQuestionContext(person, question, actionname):
Assign Karma with the given actionname to the given person.

Use the given question's context as the karma context.

@block_implicit_flushes
def question_created(question, event):
Assign karma to the user which created <question>.
@block_implicit_flushes
def question_modified(question, event):
Check changes made to <question> and assign karma to user if needed.
@block_implicit_flushes
def question_comment_added(questionmessage, event):
Assign karma to the user which added <questionmessage>.
def get_karma_context_parameters(context):
Return the proper karma context parameters based on the object.
@block_implicit_flushes
def faq_created(faq, event):
Assign karma to the user who created the FAQ.
@block_implicit_flushes
def faq_edited(faq, event):
Assign karma to user who edited a FAQ.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.