NoteTemplateContentUpdatedEvent
Dispatched BEFORE saving note-template content in NoteTemplateService.update_content().
Synchronous listeners can:
- Mutate new_content (e.g., reconcile or annotate blocks)
- Raise exceptions to abort the save (rollback the transaction)
:param note_template_id: ID of the note template being updated :param old_content: The current content before the update (may be None) :param new_content: The new content to be saved — MUTABLE by sync listeners
Attributes
action: strdata: Optionalnew_content: gws_core.impl.rich_text.rich_text_types.RichTextDTO | Nonenote_template_id: strold_content: gws_core.impl.rich_text.rich_text_types.RichTextDTO | Nonetimestamp: datetimetriggered_by: Optionaltype: strFunctions
__init__
Initialize self. See help(type(self)) for accurate signature.
type :
Literal - note_template action :
Literal - content_updated data :
Optional timestamp :
datetime - <factory> triggered_by :
Optional note_template_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