Exemplo n.º 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)
Exemplo n.º 2
0
 def conn_args(self):
     conf = MccmConfig()
     post_cmd_args = "; python %s $? vnc \"%s\" 2> /dev/null; exit \n" % (error_dialog, connection_error)
     self.client, options, embedded = conf.get_vnc_conf()
     return self.cx_args(self.client, self.options, self.vnchost(), post_cmd_args)