10.6.3. Class cerebro.events.AfterEventChangingOfMessages

class cerebro.events.AfterEventChangingOfMessages(event_type, event_id)[source]

Bases: cerebro.events.EventChangingOfMessages

The class for the property change event - for a single message or several messages at once. It grants access to the data of the modified messages after writing it into the database.

Warning

this class is used to handle the changes of most part of the properties, but not all of them. In order to handle, for example, tag modifying, some other classes should be used. See the complete list of event classes.

Methods

The class object is input into the following function: after_event of the module event.

def after_event(event): 
        if event.event_type() == event.EVENT_CHANGING_OF_MESSAGE_FLAGS:
                ...