def insert_default_options(self, widget): type = widget.get_active_text() conf = MccmConfig() config = "" if type == 'SSH': not_used, config = conf.get_ssh_conf() elif type == 'VNC': not_used, config = conf.get_vnc_conf() elif type == 'RDP': not_used, config = conf.get_rdp_conf() elif type == 'TELNET': not_used, config = conf.get_telnet_conf() elif type == 'FTP': not_used, config = conf.get_ftp_conf() opts_entry = self.widgets['options_entry1'] opts_entry.set_text(config)
def conn_args(self): conf = MccmConfig() post_cmd_args = "; python %s $? rdp \"%s\" 2> /dev/null; exit \n" % (error_dialog, connection_error) self.client, not_used = conf.get_rdp_conf() return self.cx_args(self.client, self.options, self.host, post_cmd_args)