TowerVariableMixin
- _name:
cx.tower.variable.mixin - _description:
Tower Variables mixin
Used to implement variables and variable values. Inherit in your model if you want to use variables in it.
Method get_variable_value
Get the value of a variable. IMPORTANT: This is the generic method that returns the value of the variable for the current record. It doesn't evaluate fallback values,eg "jet->template->server->global". Inherit and override this method to implement a proper value parsing logic.
Args: variable_reference (str): The reference of the variable to get the value for no_fallback (bool): If True, return current record value without checking fallback values. Returns: str: The value of the variable for the current record or None
Method set_variable_value
Set the value of a variable.
Args: variable_reference (str): The reference of the variable to set the value for value (str): The value to set for the variable