10.6.1. Class cerebro.events.AfterEventChangingOfAttachments

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

Bases: cerebro.events.EventChangingOfAttachments

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


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.


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_ATTACHMENT_HASHTAGS: