Menu
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version
Publication date

Mar 9, 2022

Confidentiality
Public
Reactions
1
Share

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: str
Functions
__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
Shine Logo
Technical bricks to reuse or customize

Have you developed a brick?

Share it to accelerate projects for the entire community.