Auto-Installation |
modules/Profile.ycp |
Profile handling | |
|
|
This module has an unstable interface. |
Imports
Includes
Global Functions
Local Functions |
global
Profile ()
->
void
Constructor
local
DetectVersion ()
->
string
Detect Version
local
storageLibCompat ()
->
void
compatibility to new storage lib in 10.0
global
generalCompat ()
->
void
compatibility to new language,keyboard and timezone client in 10.1
global
ReadProperties (map properties)
->
void
Read Profile properties and Version
- Parameters:
-
properties
global
Import (map<string, any> profile)
->
void
Import Profile
- Parameters:
-
profile
global
Prepare ()
->
void
Prepare Profile for saving and remove empty data structs
global
Reset ()
->
void
Reset profile to initial status
global
Save (string file)
->
boolean
Save YCP data into XML
- Parameters:
-
file
- Return value:
-
true on success
global
SaveSingleSections (string dir)
->
map<string,string>
Save sections of current profile to separate files
- Parameters:
-
dir - directory to store section xml files in
- Return value:
-
- list of filenames
global
SaveProfileStructure (string parsedControlFile)
->
boolean
Save the current data into a file to be read after a reboot.
- Parameters:
-
parsedControlFile
- Return value:
-
true on success
- See
-
Restore()
global
ReadProfileStructure (string parsedControlFile)
->
boolean
Read YCP data as the control file
- Parameters:
-
parsedControlFile
local
Compat (map<string, any> _current)
->
map<string, any>
General compatibility issues
- Parameters:
-
_current
- Return value:
-
converted profile
global
ReadXML (string file)
->
boolean
Read XML into YCP data
- Parameters:
-
file
global
setElementByList (list<any> l, any v, map<string,any> m)
->
map<string,any>
this function is a replacement for this code:
list
- Parameters:
-
l v m