From 689ee0a159a0152170601adf116ab71272010417 Mon Sep 17 00:00:00 2001
From: Stefano Borini <sborini@enthought.com>
Date: Tue, 22 Aug 2017 11:02:14 +0100
Subject: [PATCH] Added before save hook

---
 force_bdss/notification_listeners/base_ui_hook_manager.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/force_bdss/notification_listeners/base_ui_hook_manager.py b/force_bdss/notification_listeners/base_ui_hook_manager.py
index d9e66d5..52e9c47 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.
+        """
-- 
GitLab