Example #1
0
    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)
Example #2
0
 def conn_args(self):
     conf = MccmConfig()
     post_cmd_args = "; python %s $? ssh \"%s\" 2> /dev/null; exit \n" % (error_dialog, connection_error)
     self.client, not_used = conf.get_ssh_conf()
     return self.cx_args(self.client, self.hostname(), "-p", self.port, self.options, post_cmd_args)