ProductLicense |
ProductLicense.ycp |
Provide access / dialog for product license | |
|
|
This module has an unstable interface. |
License files by their eula_ID
Structure $["ID":$[licenses]]
Checks the string that might contain ID of a license and eventually returns that id. See also GetIdPlease for a better ratio of successful stories.
- Parameters:
-
id_text
Creates a unique identification from filename (MD5sum + file size)
- Parameters:
-
filename
- Return value:
-
unique ID
Checks whether the license (file) has been already accepted
- Parameters:
-
license_ident
- Return value:
-
whether the license has been accepted before
Sets that the license (file) has been already accepted
- Parameters:
-
license_ident
Returns whether accepting the license manually is requied.
- Parameters:
-
id
- Return value:
-
if required
- See
-
BNC #448598
Displays License with Help and ( ) Yes / ( ) No radio buttons
- Parameters:
-
languages back license_language licenses id
Removes the temporary directory for licenses
- Parameters:
-
tmpdir
Get all files with license existing in specified directory
- Parameters:
-
dir string directory to look into patterns a list of patterns for the files, regular expressions with %1 for the language
- Return value:
-
a map $[ lang_code : filename ]
Generic cleanup
Ask user to confirm license agreement
- Parameters:
-
src_id integer repository to get the license from. If set to 'nil', the license is considered to belong to a base product dir string directory to look for the license in if src_id is nil and not 1st stage installation patterns a list of patterns for the files, regular expressions with %1 for the language action enable_back base_product require_agreement means that even if the license (or the very same license) has been already accepetd, ask user to accept it again (because of 'going back' in the installation proposal). id
Ask user to confirm license agreement
- Parameters:
-
dirs patterns a list of patterns for the files, regular expressions with %1 for the language action enable_back base_product require_agreement means that even if the license (or the very same license) has been already accepetd, ask user to accept it again (because of 'going back' in the installation proposal).
Called from the first stage Welcome dialog by clicking on a button
- Parameters:
-
replace_point_ID src_id
Used in the first-stage Welcome dialog
- Parameters:
-
replace_point_ID src_id