hydraveil-gui/gui/v2/actions/profile_actions.py

14 lines
551 B
Python

from core.controllers.ProfileController import ProfileController
from gui.v2.infrastructure.take_plumbing_action import take_action
from gui.v2.infrastructure.setup_observers import profile_observer
from typing import Callable
def create_profile(potential_data: dict, ui_caller: Callable):
"""Pass the data through the plumbing, to the controller to create a profile."""
take_action(
action=ProfileController.create,
ui_caller=ui_caller,
potential_data=potential_data,
profile_observer=profile_observer
)