From 069636402df0f21f6c2753b596a38d91dd5867cd Mon Sep 17 00:00:00 2001 From: Aliaksandr Yakutovich Date: Thu, 19 Oct 2023 14:25:45 +0000 Subject: [PATCH] Replace ipw.dlink with tl.dlink --- .../computational_resources.py | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/aiidalab_widgets_base/computational_resources.py b/aiidalab_widgets_base/computational_resources.py index 2c42f3cae..bd5490250 100644 --- a/aiidalab_widgets_base/computational_resources.py +++ b/aiidalab_widgets_base/computational_resources.py @@ -115,7 +115,7 @@ def __init__( enable_detailed_setup=enable_detailed_setup, ) self.resource_setup.observe(self.refresh, "success") - ipw.dlink( + tl.dlink( (self.resource_setup, "message"), (self.setup_message, "message"), ) @@ -252,7 +252,7 @@ def __init__(self, ssh_folder: Path | None = None, **kwargs): self._ssh_connection_message = None self._password_message = ipw.HTML() - ipw.dlink( + tl.dlink( (self, "password_message"), (self._password_message, "value"), transform=lambda x: f"SSH log: {x}", @@ -1576,62 +1576,62 @@ def __init__( # ) self.ssh_computer_setup = SshComputerSetup() - ipw.dlink( + tl.dlink( (self.ssh_computer_setup, "message"), (self, "message"), ) # Computer setup template. self.template_computer_setup = TemplateVariablesWidget() - ipw.dlink( + tl.dlink( (self.comp_resources_database, "computer_setup"), (self.template_computer_setup, "templates"), ) # Computer configure template. self.template_computer_configure = TemplateVariablesWidget() - ipw.dlink( + tl.dlink( (self.comp_resources_database, "computer_configure"), (self.template_computer_configure, "templates"), ) # Computer setup and configure. self.aiida_computer_setup = AiidaComputerSetup() - ipw.dlink( + tl.dlink( (self.template_computer_setup, "filled_templates"), (self.aiida_computer_setup, "computer_setup"), ) - ipw.dlink( + tl.dlink( (self.template_computer_configure, "filled_templates"), (self.aiida_computer_setup, "computer_configure"), ) self.aiida_computer_setup.on_setup_computer_success( self._on_setup_computer_success ) - ipw.dlink( + tl.dlink( (self.aiida_computer_setup, "message"), (self, "message"), ) # SSH connection setup. - ipw.dlink( + tl.dlink( (self.template_computer_configure, "filled_templates"), (self.ssh_computer_setup, "ssh_config"), ) # Code setup. self.template_code = TemplateVariablesWidget() - ipw.dlink( + tl.dlink( (self.comp_resources_database, "code_setup"), (self.template_code, "templates"), ) self.aiida_code_setup = AiidaCodeSetup() - ipw.dlink( + tl.dlink( (self.template_code, "filled_templates"), (self.aiida_code_setup, "code_setup"), ) self.aiida_code_setup.on_setup_code_success(self._on_setup_code_success) - ipw.dlink( + tl.dlink( (self.aiida_code_setup, "message"), (self, "message"), )