diff --git a/force_bdss/notification_listeners/base_ui_hook_manager.py b/force_bdss/notification_listeners/base_ui_hook_manager.py index d9e66d5f7c0d485ad668f327be9573e82954db09..52e9c47af639eca2fd468658e8633b07a680f89e 100644 --- a/force_bdss/notification_listeners/base_ui_hook_manager.py +++ b/force_bdss/notification_listeners/base_ui_hook_manager.py @@ -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. + """