angelos.lib.api.settings¶
Facade settings API.
@todo Re-implement settings using DataFacadeExtension
-
class
angelos.lib.api.settings.
SettingsAPI
(facade: angelos.lib.facade.base.BaseFacade)¶ Bases:
angelos.lib.api.api.ApiFacadeExtension
An interface class to be placed on the facade.
-
ATTRIBUTE
= ('settings',)¶
-
PATH_PREFS
= ('preferences.ini',)¶
-
add_section
= None¶
-
get
= None¶
-
items
= None¶
-
load_preferences
() → None¶ Load preferences.ini file into a configparser.
-
load_set
(name: unicode) → Set[Tuple[Any, …]]¶ Load a csv file into a set of tuples.
- Parameters
name – filename
- Returns
Set of tupled data.
-
networks
() → Set[Tuple[uuid.UUID, bool]]¶ Load all available networks.
- Returns
set of tuples width network UUID’s
-
options
= None¶
-
save_preferences
() → bool¶ Save a configparser into preferences.ini file.
-
save_set
(name: unicode, data: Set[Tuple[Any, …]]) → bool¶ Save a set of tuples as rows in a csv file.
- Parameters
name – filename
data – set of tuples
- Returns
Success of failure
-
sections
= None¶
-
set
= None¶
-