ssg.profiles module
- class ssg.profiles.ProfileSelections(profile_id, profile_title, product_id, product_title)[source]
Bases:
objectA class to represent profile with sections of rules and variables.
Attributes:
- profile_idstr
The unique identifier for the profile.
- profile_titlestr
The profile title associated with the profile id.
- product_idstr
The product id associated with the profile.
- product_titlestr
The product title associated with the product id.
- ssg.profiles.get_profiles_from_products(content_dir: str, products: list, sorted: bool = False) list[source]
Retrieves profiles with respective variables from the given products.
- Parameters:
content_dir (str) – The directory containing the content.
products (list) – A list of product names to retrieve profiles from.
sorted (bool) – Sorts the profile selections if true, defaults to False
- Returns:
A list of ProfileVariables objects containing profile variables for each product.
- Return type:
list