10.6.18. Class cerebro.events.BeforeEventCreationOfMessage¶
-
class
cerebro.events.
BeforeEventCreationOfMessage
(event_type, event_id)[source]¶ Bases:
cerebro.events.BeforeEventMessage
The class for the task creation event. Grants access to the data of a newly created message before it is written into the database.
Methods
The class object is input into the
before_event
anderror_event
(in case of error) functions of the event module.def before_event(event): if event.event_type() == event.EVENT_CREATION_OF_MESSAGE: ...
See also