Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
force-bdss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adham Hashibon
force-bdss
Commits
26cbaecc
Commit
26cbaecc
authored
7 years ago
by
Stefano Borini
Browse files
Options
Downloads
Patches
Plain Diff
UI Hook manager
parent
3fde61c3
No related branches found
No related tags found
1 merge request
!93
UI Hooks
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
force_bdss/notification_listeners/base_notification_listener_factory.py
+7
-0
7 additions, 0 deletions
...ification_listeners/base_notification_listener_factory.py
force_bdss/notification_listeners/base_ui_hook_manager.py
+11
-0
11 additions, 0 deletions
force_bdss/notification_listeners/base_ui_hook_manager.py
with
18 additions
and
0 deletions
force_bdss/notification_listeners/base_notification_listener_factory.py
+
7
−
0
View file @
26cbaecc
...
...
@@ -48,3 +48,10 @@ class BaseNotificationListenerFactory(ABCHasStrictTraits):
model_data: dict
Data to use to fill the model.
"""
@abc.abstractmethod
def
create_ui_hook_manager
(
self
):
"""
Creates an instance of the hook manager
The hook manager contains a set of methods that are applicable in
various moments of the UI application lifetime.
"""
This diff is collapsed.
Click to expand it.
force_bdss/notification_listeners/base_ui_hook_manager.py
0 → 100644
+
11
−
0
View file @
26cbaecc
import
abc
from
traits.api
import
ABCHasStrictTraits
class
BaseUIHookManager
(
ABCHasStrictTraits
):
@abc.abstractmethod
def
before_execution
(
self
,
application
,
model
):
"""
Hook that is called before execution of a given model.
Gives a chance to alter the model before the temporary file is created
with its contents and the calculation invoked.
"""
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment