Author: jreidinger Date: Mon Mar 16 10:15:56 2009 New Revision: 56129 URL: http://svn.opensuse.org/viewcvs/yast?rev=56129&view=rev Log: fix creating new section for zipl Modified: branches/tmp/juhliarik/bootloader-UIrefactor/src/modules/BootZIPL.ycp branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/dialogs.ycp branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/section_widgets.ycp branches/tmp/juhliarik/bootloader-UIrefactor/src/zipl/helps.ycp Modified: branches/tmp/juhliarik/bootloader-UIrefactor/src/modules/BootZIPL.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/juhliarik/bootloader-UIref... ============================================================================== --- branches/tmp/juhliarik/bootloader-UIrefactor/src/modules/BootZIPL.ycp (original) +++ branches/tmp/juhliarik/bootloader-UIrefactor/src/modules/BootZIPL.ycp Mon Mar 16 10:15:56 2009 @@ -301,6 +301,10 @@ return true; } +list <string> zipl_section_types() +{ + return ["image", "menu", "dump"]; +} /** * Return map of provided functions * @return a map of functions (eg. $["write"::Write]) @@ -319,7 +323,7 @@ "widgets" : genericWidgets, "wizard_sequencer" : WizardSequenzer, "dialogs" : Dialogs, - "section_types" : section_types, + "section_types" : zipl_section_types, "flagonetimeboot" : FlagOnetimeBoot, ]; } Modified: branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/juhliarik/bootloader-UIref... ============================================================================== --- branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/dialogs.ycp (original) +++ branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/dialogs.ycp Mon Mar 16 10:15:56 2009 @@ -493,7 +493,7 @@ list<string> widget_names = ["section_type"]; map<string,map<string,any> > widget_descr = $[]; - if (lt != "grub") + if (lt != "grub" && lt != "zipl") widget_descr = (map<string,map<string,any> >) union (CommonGlobalWidgets (), Bootloader::blWidgetMaps ()); else widget_descr = (map<string,map<string,any> >) union (CommonGlobalWidgets (), CommonSectionWidgets ()); Modified: branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/section_widgets.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/juhliarik/bootloader-UIref... ============================================================================== --- branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/section_widgets.ycp (original) +++ branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/section_widgets.ycp Mon Mar 16 10:15:56 2009 @@ -404,6 +404,8 @@ "other" : _("Other System (Chainloader)"), // radio button "menu" : _("Menu Section"), + // radio button + "dump" : _("Dump Section"), ]; foreach (string t, section_types, { if (count > 0) Modified: branches/tmp/juhliarik/bootloader-UIrefactor/src/zipl/helps.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/juhliarik/bootloader-UIref... ============================================================================== --- branches/tmp/juhliarik/bootloader-UIrefactor/src/zipl/helps.ycp (original) +++ branches/tmp/juhliarik/bootloader-UIrefactor/src/zipl/helps.ycp Mon Mar 16 10:15:56 2009 @@ -35,22 +35,20 @@ "boot" : _("Boot Image Location"), "default" : _("Default Boot Section/Menu"), "type_image" : _("Image Section"), - "image_target" : _("Target Directory for Image Section"), + "target" : _("Target Directory for Section"), "image_image" : _("Kernel Image"), "image_initrd" : _("Initial RAM Disk"), "image_append" : _("Optional Kernel Parameters"), "image_root" : _("Root device"), - "image_parmfile" : _("Optional Parameter File"), + "parmfile" : _("Optional Parameter File"), "type_dump" : _("Dump Section (obsolete)"), - "dump_target" : _("Target Directory for Dump Section"), - "dump_dumpto" : _("Dump Device"), - "dump_dumptofs" : _("SCSI Dump Device"), + "dumpto" : _("Dump Device"), + "dumptofs" : _("SCSI Dump Device"), "type_menu" : _("Menu Section"), - "menu_target" : _("Target Directory for Menu Section"), - "menu_list" : _("List of Menu Entries"), - "menu_default" : _("Number of Default Entry"), - "menu_timeout" : _("Timeout in seconds"), - "menu_prompt" : _("Show boot menu"), + "list" : _("List of Menu Entries"), + "default" : _("Number of Default Entry"), + "timeout" : _("Timeout in seconds"), + "prompt" : _("Show boot menu"), ]; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org