def __init__(self, ctrl_be, instance_info, main_view):
        WbAdminTabBase.__init__(self, ctrl_be, instance_info, main_view)
        self.content = None

        self.add_validation(WbAdminValidationConnection(ctrl_be))
        self.add_validation(WbAdminValidationPSUsable(main_view))
        self.add_validation(WbAdminValidationNeedsInstallation(main_view, ctrl_be, self))
Beispiel #2
0
 def __init__(self, ctrl_be, instance_info, main_view):
     WbAdminTabBase.__init__(self, ctrl_be, instance_info, main_view)
     self.disable_log_refresh = False
     
     self.add_validation(WbAdminValidationConnection(ctrl_be))
     self.add_validation(WbAdminValidationConfigFile(instance_info))
     self.add_validation(WbAdminValidationLogOutputType(instance_info))
     
     self.set_standard_header("title_logs.png", self.instance_info.name, "Server Logs")
Beispiel #3
0
 def __init__(self, ctrl_be, instance_info, main_view):
     WbAdminTabBase.__init__(self, ctrl_be, instance_info, main_view)
     
     self.min_server_version = (5,6,6)
 
     self._refresh_tm = None
     self.drawbox = None
     self._form_deactivated_conn = None
     
     self.add_validation(WbAdminValidationConnection(ctrl_be))
    def __init__(self, ctrl_be, instance_info, main_view):
        WbAdminTabBase.__init__(self, ctrl_be, instance_info, main_view)

        self.add_validation(WbAdminValidationRemoteAccess(instance_info))
        self.set_standard_header("title_startup.png", self._instance_info.name,
                                 "Startup / Shutdown MySQL Server")
        self.long_status_msg = None
        self.short_status_msg = None
        self.start_stop_btn = None
        self.offline_mode_btn = None
        self.startup_msgs_log = None
        self.is_server_running_prev_check = None
        self.copy_to_clipboard_button = None
        self.clear_messages_button = None
        self.error_log_reader = None

        if self.server_control:
            self.server_control.set_output_handler(self.print_output_cb)

        button_box = newBox(True)
        self.refresh_button = newButton()
        self.refresh_button.set_size(150, -1)
        self.refresh_button.set_text("Refresh Status")
        self.refresh_button.add_clicked_callback(lambda: self.refresh(True))
        button_box.add(self.refresh_button, False, True)

        self.copy_to_clipboard_button = newButton()
        self.copy_to_clipboard_button.set_size(150, -1)
        self.copy_to_clipboard_button.set_text("Copy to Clipboard")
        self.copy_to_clipboard_button.add_clicked_callback(
            self.copy_to_clipboard)
        button_box.add_end(self.copy_to_clipboard_button, False, True)

        self.clear_messages_button = newButton()
        self.clear_messages_button.set_size(150, -1)
        self.clear_messages_button.set_text("Clear Messages")
        self.clear_messages_button.add_clicked_callback(self.clear_messages)
        button_box.add_end(self.clear_messages_button, False, True)

        self.set_footer(button_box)
Beispiel #5
0
    def __init__(self, ctrl_be, instance_info, main_view):
        WbAdminTabBase.__init__(self, ctrl_be, instance_info, main_view)

        self.add_validation(WbAdminValidationConnection(ctrl_be))
        self.set_standard_header("title_variables.png",
                                 self.instance_info.name, "Server Variables")