Skip to content
Snippets Groups Projects
Commit 689ee0a1 authored by Stefano Borini's avatar Stefano Borini
Browse files

Added before save hook

parent 26cbaecc
No related branches found
No related tags found
1 merge request!93UI Hooks
......@@ -9,3 +9,10 @@ class BaseUIHookManager(ABCHasStrictTraits):
Gives a chance to alter the model before the temporary file is created
with its contents and the calculation invoked.
"""
@abc.abstractmethod
def before_save(self, application, model):
"""Hook that is called just before saving a given model to disk
in response to a user action. This does not apply to saving of
temporary files before execution.
"""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment