217. Provider

Provider data

217.1. Authors

  • Dan Vesely <dan@suse.cz>

  • Petr Blahos <pblahos@suse.cz>

  • Michal Svec <msvec@suse.cz>

217.2. Summary of Module Globals

List of Global Functions

  • Add - Add a new provider

  • Clone - Clone the given provider

  • CloneSystem - Clone the given system provider

  • Commit - Commit pending operation

  • Delete - Delete the given provider

  • Edit - Edit the given provider

  • Export - Export data

  • GetCountries - Get list of countries

  • GetCountry - This is a single point of dependence on the Language module of yast2-country-data

  • GetProviders - Get providers from a group (country/other)

  • Import - Import data

  • IsUnique - Check if provider name is unique

  • Modified - Were the providers changed?

  • Overview - Create an overview table with all configured providers

  • ProviderType - Return current provider type

  • Read - Read providers data (custom only) and country mappings

  • Select - Select the given provider

  • SelectSystem - Select the given system provider

  • Summary - Create a textual summary and a list of unconfigured providers

  • Write - Write custom providers data

List of Global Variables

  • Current - Current provider structure depends on Type. See providers.rpm

  • LastCountry - Last selected country

  • Name - Current provider name

  • Type - Current provider type

217.3. Global Functions

217.3.1. Add

Add a new provider

Function parameters

  • string type

Return value

  • boolean - true if success

217.3.2. Clone

Clone the given provider

Function parameters

  • string name

Return value

  • boolean - true if success

217.3.3. CloneSystem

Clone the given system provider

Function parameters

  • path name

Return value

  • boolean - true if success

217.3.4. Commit

Commit pending operation

Return value

  • boolean - true if success

217.3.5. Delete

Delete the given provider

Function parameters

  • string name

Return value

  • boolean - true if success

217.3.6. Edit

Edit the given provider

Function parameters

  • string name

Return value

  • boolean - true if success

217.3.7. Export

Export data

Function parameters

  • string type

Return value

  • map - dumped settings (later acceptable by Import())

217.3.8. GetCountries

Get list of countries

Return value

  • list - for SelectionBox

217.3.9. GetCountry

This is a single point of dependence on the Language module of yast2-country-data

Return value

  • string

217.3.10. GetProviders

Get providers from a group (country/other)

Function parameters

  • string type

  • string country

  • string preselect

Return value

  • list - of items for SelectionBox

217.3.11. Import

Import data

Function parameters

  • string type

  • map providers

Return value

  • map - true on success

217.3.12. IsUnique

Check if provider name is unique

Function parameters

  • string name

Return value

  • boolean - true if OK

217.3.13. Modified

Were the providers changed?

Function parameters

  • string type

Return value

  • boolean - true if modified

217.3.14. Overview

Create an overview table with all configured providers

Function parameters

  • string type

Return value

  • list - table items

217.3.15. ProviderType

Return current provider type

Return value

  • string - current provider type

217.3.16. Read

Read providers data (custom only) and country mappings

Return value

  • boolean - true if success

217.3.17. Select

Select the given provider

Function parameters

  • string name

Return value

  • boolean - true if success

217.3.18. SelectSystem

Select the given system provider

Function parameters

  • path name

Return value

  • boolean - true if success

217.3.19. Summary

Create a textual summary and a list of unconfigured providers

Function parameters

  • string type

  • boolean split

Return value

  • list - summary of the current configuration

217.3.20. Write

Write custom providers data

Function parameters

  • string type

Return value

  • boolean - true if sucess

217.4. Global Variables

217.4.1. Current

Current provider structure depends on Type. See providers.rpm

217.4.2. LastCountry

Last selected country

217.4.3. Name

Current provider name

217.4.4. Type

Current provider type

217.5. Module Requirements

217.5.1. Module Imports

  • HTML
  • Language
  • Map
  • String
  • Summary

217.5.2. Module Includes