class documentation

Config object representing an operating system.

Class Method GetName Returns the proper name of the os (without the variant).
Class Method GetVariant Returns the variant the os (without the base name).
Class Method SplitNameVariant Splits the name into the proper name and variant.
Method IsTrusted Returns whether this OS is trusted.
Constant VARIANT_DELIM the variant delimiter
Class Variable __slots__ Undocumented
Instance Variable supported_parameters a list of tuples, name and description, containing the supported parameters by this OS

Inherited from ConfigObject:

Class Method FromDict Create an object from a dictionary.
Method __getattr__ Undocumented
Method __repr__ Implement __repr__ for ConfigObjects.
Method __setstate__ Undocumented
Method Copy Makes a deep copy of the current object and its children.
Method ToDict Convert to a dict holding only standard python types.
Method UpgradeConfig Fill defaults for missing configuration values.
Method Validate Validates the slots.

Inherited from ValidatedSlots (via ConfigObject):

Class Method GetAllSlots Compute the list of all declared slots for a class.
Method __init__ Constructor for BaseOpCode.
@classmethod
def GetName(cls, name):

Returns the proper name of the os (without the variant).

Parameters
namethe OS (unprocessed) name
@classmethod
def GetVariant(cls, name):

Returns the variant the os (without the base name).

Parameters
namethe OS (unprocessed) name
@classmethod
def SplitNameVariant(cls, name):

Splits the name into the proper name and variant.

Parameters
namethe OS (unprocessed) name
Returns
lista list of two elements; if the original name didn't contain a variant, it's returned as an empty string
def IsTrusted(self):

Returns whether this OS is trusted.

Returns
boolTrue if this OS is trusted, False otherwise
VARIANT_DELIM: string =

the variant delimiter

Value
'+'
__slots__: list[str] =

Undocumented

supported_parameters: list =

a list of tuples, name and description, containing the supported parameters by this OS