import wx, sys, os, string, gettext import wx.wizard as wiz cat = gettext.GNUTranslations(open('../langs/%s.mo' % os.getenv('LANG'))) _ = cat.gettext generate_ip_list = '/opt/drbl/bin/get-client-ip-list' drbl_ocs = '/opt/drbl/sbin/drbl-ocs -b' drbl_dcs = '/opt/drbl/sbin/dcs' # Main Functions List # ITEM ID : ('ITEM NAME', 'ITEM DESCRIBE') main_functions = { 0:('remote', 'this is a test string1'), 1:('clonezilla', 'this is a test string2'), 2:('client_actions', 'this is a test string3'), 3:('drbl_config', 'this is a test string4'), 4:('others', 'this is a test string5') } # Remote Functions List # ITEM ID : ('ITEM NAME', 'ITEM DESCRIBE', 'COMMAND') remote_functions = { 0:('remote-linux', _('msg_remote_linux'), 'remote-linux'), 1:('remote-linux-gra', _('msg_remote_linux_graphic'), 'remote-linux-gra'), 2:('remote-linux-txt', _('msg_remote_linux_text'), 'remote-linux-txt'), 3:('terminal', _('msg_thin_client'), 'terminal'), 4:('remote-memtest', _('msg_remote_memtest'), 'remote-memtest'), 5:('remote-fdos', _('msg_remote_fdos'), 'remote-fdos') } # Clonezilla Save List # ITEM ID : ('OPTIONS', 'OPTIONS DESCRIBE') all_clonezilla_save_opt = { 0:('-q', _('msg_ocs_param_q')), 1:('-c', _('msg_ocs_param_c')), 2:('-nogui', _('msg_ocs_param_nogui')), 3:('-a', _('msg_ocs_param_a')), 4:('-f', _('msg_ocs_param_f')), 5:('-s', _('msg_ocs_param_s')), 6:('-ntfs-ok', _('msg_ocs_param_notfs_ok')) } # ITEM ID : ('OPTIONS', 'OPTIONS DESCRIBE') clonezilla_disk_part = { 0:('startdisk', _('msg_clonezilla_save_disk')), 1:('startparts', _('msg_clonezilla_save_parts')) } client_action_after_save = { 0:('-p choose', _('msg_ocs_param_p_choose')), 1:('-p true', _('msg_ocs_param_p_true')), 2:('-p poweroff', _('msg_ocs_param_p_poweroff')), 3:('-p reboot', _('msg_ocs_param_p_reboot')) } compress_mode = { 0:('-z0', _('msg_ocs_param_z0')), 1:('-z1', _('msg_ocs_param_z1')), 2:('-z2', _('msg_ocs_param_z2')), 3:('-z3', _('msg_ocs_param_z3')) } server_client_input = { 0:(_('msg_now_input_in_server')), 1:(_('msg_later_input_in_client')) }