NoteDeletedEvent
Dispatched BEFORE deleting a note in NoteService._delete_note_db().
Synchronous listeners can:
- Clean up related data (e.g., reverse activities linked to the note)
- Raise exceptions to abort the deletion (rollback the transaction)
:param note_id: ID of the note being deleted :param content: The current note content before deletion
Attributes
action: strcontent: gws_core.impl.rich_text.rich_text_types.RichTextDTO | Nonedata: anynote_id: strtimestamp: datetimetriggered_by: User | Nonetype: strFunctions
__init__
Initialize self. See help(type(self)) for accurate signature.
type :
Literal - note action :
Literal - deleted data :
any timestamp :
datetime - <factory> triggered_by :
User | None note_id :
str - '' content :
gws_core.impl.rich_text.rich_text_types.RichTextDTO | None get_event_name
Get the full event name in format 'type.action'
Return type :
str