YaST2 Developers Documentation: YaST2 OS Repair

YaST2 OS Repair

OSRSummary.ycp
  • Johannes Buchhold <jbuch@suse.de>, 2002
  • Create a unified-looking RichText description of the not configured/configured devices.
  • This is used in <module_name>_summary.ycp modules.

This module has an unstable interface.

Imports

  • HTML
  • Mode
  • OSRCommon
  • OSRLogFile
  • OSRProgress
  • OSRStatus
  • Stage

Global Functions

Local Variables

Local Functions

local summary -> map

$["init":[ $["description":"No floppy device found", "header":"Probing floppy", "method_name":"", "status":"not_found"],

$["description":"Target system initialised", "header":"Init target system", "method_name":"", "status":"detect_ok"]],

"mbr_check":[$[ "description":"One hard disk detected: /dev/hda", "header":"Searching for hard disks", "method_name":"find_harddisks", "status":"detect_ok"]]]

local ItemList (list<string> items) -> string

Function that creates the shown text in the RichText widget. "Not detected" will be returned if the list is empty.

API function.

Parameters:
items
Return value:
Th»e formatted text.
local Item (string name, string description, string status) -> string

Function that creates the description for one item.

API function.

Parameters:
name
description
status
Return value:
The formatted text.
global Update () -> boolean

Updates the contents of the RichText widget.

API function.

Return value:
True if the RichText widget was changed successfully.
local change_summary (string header, string description) -> boolean

Changes the summary of the specified module in the RichText widget.

For internal use only.

Parameters:
header
description
Return value:
True if the RichText widget was updated successfully.
local entry -> map

possible values for the key "status" are: "detect_ok", "detect_error", "detect_problem", "repair_ok", "repair_error" and "repair_omit"

global DetectOK (string header, string description) -> boolean

Changes the summary of the specified module in the RichText widget. Shows that the rescue system has found no error. Blue font is used for the headline.

API function.

Parameters:
header
description
Return value:
True if the RichText widget was updated successfully.
global DetectOmit (string header, string description) -> boolean

Changes the summary of the specified module in the RichText widget. Shows that the rescue system has found no error. Blue font is used for the headline.

API function.

Parameters:
header
description
Return value:
True if the RichText widget was updated successfully.
global DetectError (string header, string description) -> boolean

Changes the summary of the specified module in the RichText widget. Shows that the rescue system has detected an error. Red font is used for the headline.

API function.

Parameters:
header
description
Return value:
True if the RichText widget was updated successfully.
global DetectProblem (string header, string description) -> boolean

Changes the summary of the specified module in the RichText widget. Shows that the rescue system has detected a potential problem. Red font is used for the headline.

API function.

Parameters:
header
description
Return value:
True if the RichText widget was updated successfully.
global RepairOK (string header, string description) -> boolean

Changes the summary of the specified module in the RichText widget. Shows that the rescue system repaired the detected error. ??? font is used for the headline.

API function.

Parameters:
header
description
Return value:
True if the RichText widget was updated successfully.
global RepairError (string header, string description) -> boolean

Changes the summary of the specified module in the RichText widget. Shows that an error occurred during the repair-process. ??? font is used for the headline.

API function.

Parameters:
header
description
Return value:
True if the RichText widget was updated successfully.
global RepairOmit (string header, string description) -> boolean

Changes the summary of the specified module in the RichText widget. Shows that the repair process was omitted by the user.

API function.

Parameters:
header
description
Return value:
True if the RichText widget was updated successfully.