YaST2 Developers Documentation: Unknown YCP Module

Unknown YCP Module

This module has an unstable interface.

Imports

  • Label

Global Functions

Local Functions

Info:

File: modules/ValueBrowser.ycp Package: YaST2 base package Summary: Useful tool for viewing any variable contents. Authors: Martin Vidner Dan Vesely? Flags: Unstable

local escapestring (string s) -> string

Helper function that replaces all ocurences of "\n" with "\\n", so items are not multiline :-)

Parameters:
s string to escape
Return value:
escaped string
local FormatSimpleType (any variable, string indent) -> string

Shows tree with contents of variable. This function does the job. Heavy recursion...

Parameters:
variable variable to show.
indent string that is printed before each output.
global BrowseTreeHelper (any variable, string indent) -> term

Creates tree with contents of variable. This function creates the tree items and returns them as term. This offers using the generated output in your behavior, such as data-structure browser with editor. Heavy recursion...

Parameters:
variable variable to show.
indent string that is printed before each output.
global BrowseTree (any variable) -> void

Shows tree with contents of variable.

Parameters:
variable variable to show.
Example

  map a = $[
     "first" : 35,
     "second" : [ 1, 2, 3, 4, 5],
     "third" : $[ "a" : 15, `b: `VBox () ]
    ];
  ValueBrowser::BrowseTree (a);
global DebugBrowseHelper (any variable, string indent) -> void

Write contents of variable to log file. This function does the job. Heavy recursion...

Parameters:
variable variable to show.
indent string that is printed before each output.
global DebugBrowse (any variable) -> void

Write contents of variable to log file.

Parameters:
variable variable to show.