l.a.m.q.notify_question_modified : class documentation

Part of lp.answers.model.question View In Hierarchy

Decorator that sends a ObjectModifiedEvent after a workflow action.

This decorator will take a snapshot of the object before the call to the decorated workflow_method. It will fire an ObjectModifiedEvent after the method returns.

The list of edited_fields will be computed by comparing the snapshot with the modified question. The fields that are checked for modifications are: status, messages, date_solved, answerer, answer, datelastquery and datelastresponse.

The user triggering the event is taken from the returned message.

Method __call__ Return the ObjectModifiedEvent decorator.
def __call__(self, func):
Return the ObjectModifiedEvent decorator.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.