[19] | 1 | import wx, sys, os, string, gettext |
---|
| 2 | import wx.wizard as wiz |
---|
| 3 | |
---|
| 4 | cat = gettext.GNUTranslations(open('../langs/%s.mo' % os.getenv('LANG'))) |
---|
| 5 | _ = cat.gettext |
---|
| 6 | |
---|
| 7 | generate_ip_list = '/opt/drbl/bin/get-client-ip-list' |
---|
| 8 | drbl_ocs = '/opt/drbl/sbin/drbl-ocs -b' |
---|
| 9 | drbl_dcs = '/opt/drbl/sbin/dcs' |
---|
| 10 | |
---|
| 11 | # Main Functions List |
---|
| 12 | # ITEM ID : ('ITEM NAME', 'ITEM DESCRIBE') |
---|
| 13 | main_functions = { |
---|
| 14 | 0:('remote', 'this is a test string1'), |
---|
| 15 | 1:('clonezilla', 'this is a test string2'), |
---|
| 16 | 2:('client_actions', 'this is a test string3'), |
---|
| 17 | 3:('drbl_config', 'this is a test string4'), |
---|
| 18 | 4:('others', 'this is a test string5') |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | # Remote Functions List |
---|
| 22 | # ITEM ID : ('ITEM NAME', 'ITEM DESCRIBE', 'COMMAND') |
---|
| 23 | remote_functions = { |
---|
| 24 | 0:('remote-linux', _('msg_remote_linux'), 'remote-linux'), |
---|
| 25 | 1:('remote-linux-gra', _('msg_remote_linux_graphic'), 'remote-linux-gra'), |
---|
| 26 | 2:('remote-linux-txt', _('msg_remote_linux_text'), 'remote-linux-txt'), |
---|
| 27 | 3:('terminal', _('msg_thin_client'), 'terminal'), |
---|
| 28 | 4:('remote-memtest', _('msg_remote_memtest'), 'remote-memtest'), |
---|
| 29 | 5:('remote-fdos', _('msg_remote_fdos'), 'remote-fdos') |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | # Clonezilla Save List |
---|
| 33 | # ITEM ID : ('OPTIONS', 'OPTIONS DESCRIBE') |
---|
| 34 | all_clonezilla_save_opt = { |
---|
| 35 | 0:('-q', _('msg_ocs_param_q')), |
---|
| 36 | 1:('-c', _('msg_ocs_param_c')), |
---|
| 37 | 2:('-nogui', _('msg_ocs_param_nogui')), |
---|
| 38 | 3:('-a', _('msg_ocs_param_a')), |
---|
| 39 | 4:('-f', _('msg_ocs_param_f')), |
---|
| 40 | 5:('-s', _('msg_ocs_param_s')), |
---|
| 41 | 6:('-ntfs-ok', _('msg_ocs_param_notfs_ok')) |
---|
| 42 | } |
---|
| 43 | |
---|
| 44 | # ITEM ID : ('OPTIONS', 'OPTIONS DESCRIBE') |
---|
| 45 | clonezilla_disk_part = { |
---|
| 46 | 0:('startdisk', _('msg_clonezilla_save_disk')), |
---|
| 47 | 1:('startparts', _('msg_clonezilla_save_parts')) |
---|
| 48 | } |
---|
| 49 | |
---|
| 50 | client_action_after_save = { |
---|
| 51 | 0:('-p choose', _('msg_ocs_param_p_choose')), |
---|
| 52 | 1:('-p true', _('msg_ocs_param_p_true')), |
---|
| 53 | 2:('-p poweroff', _('msg_ocs_param_p_poweroff')), |
---|
| 54 | 3:('-p reboot', _('msg_ocs_param_p_reboot')) |
---|
| 55 | } |
---|
| 56 | |
---|
| 57 | compress_mode = { |
---|
| 58 | 0:('-z0', _('msg_ocs_param_z0')), |
---|
| 59 | 1:('-z1', _('msg_ocs_param_z1')), |
---|
| 60 | 2:('-z2', _('msg_ocs_param_z2')), |
---|
| 61 | 3:('-z3', _('msg_ocs_param_z3')) |
---|
| 62 | } |
---|
| 63 | |
---|
| 64 | server_client_input = { |
---|
| 65 | 0:(_('msg_now_input_in_server')), |
---|
| 66 | 1:(_('msg_later_input_in_client')) |
---|
| 67 | } |
---|
| 68 | |
---|
| 69 | |
---|