NoteContentUpdatedEvent
Dispatched BEFORE saving note content in NoteService.update_content().
Synchronous listeners can:
- Mutate new_content (e.g., replace draft blocks with confirmed blocks)
- Raise exceptions to abort the save (rollback the transaction)
:param note_id: ID of the note being updated :param old_content: The current content before the update (may be None for new notes) :param new_content: The new content to be saved — MUTABLE by sync listeners
Attributes
action: strdata: anynew_content: gws_core.impl.rich_text.rich_text_types.RichTextDTO | Nonenote_id: strold_content: gws_core.impl.rich_text.rich_text_types.RichTextDTO | Nonetimestamp: datetimetriggered_by: User | Nonetype: strFunctions
__init__
Initialize self. See help(type(self)) for accurate signature.
type :
Literal - note action :
Literal - content_updated data :
any timestamp :
datetime - <factory> triggered_by :
User | None note_id :
str - '' old_content :
gws_core.impl.rich_text.rich_text_types.RichTextDTO | None new_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