selinon.user_config module

User configuration.

class selinon.user_config.UserConfig(config=None)[source]

Bases: object

Configuration supplied by user.

DEFAULT_STYLE_CONDITION = {'color': 'gray', 'fillcolor': '#e8e3c8', 'shape': 'octagon', 'style': 'filled'}
DEFAULT_STYLE_CONDITION_FOREACH = {'color': 'gray', 'fillcolor': '#e8e3c8', 'shape': 'doubleoctagon', 'style': 'filled'}
DEFAULT_STYLE_EDGE = {'arrowType': 'open', 'color': 'black'}
DEFAULT_STYLE_FALLBACK_EDGE = {'arrowType': 'open', 'color': '#cc1010'}
DEFAULT_STYLE_FALLBACK_TRUE = {'color': 'black', 'fillcolor': '#5af47b', 'shape': 'plain', 'style': 'filled'}
DEFAULT_STYLE_FLOW = {'color': 'black', 'fillcolor': '#197a9f', 'shape': 'box3d', 'style': 'filled'}
DEFAULT_STYLE_GRAPH = {}
DEFAULT_STYLE_STORAGE = {'color': 'black', 'fillcolor': '#894830', 'shape': 'cylinder', 'style': 'filled'}
DEFAULT_STYLE_STORE_EDGE = {'arrowType': 'open', 'color': '#894830', 'style': 'dashed'}
DEFAULT_STYLE_TASK = {'color': 'black', 'fillcolor': '#66cfa7', 'shape': 'ellipse', 'style': 'filled'}
style_condition()[source]

Wrap style configuration that makes sure style is adjusted based on user configuration.

style_condition_foreach()[source]

Wrap style configuration that makes sure style is adjusted based on user configuration.

style_edge()[source]

Wrap style configuration that makes sure style is adjusted based on user configuration.

style_fallback_edge()[source]

Wrap style configuration that makes sure style is adjusted based on user configuration.

style_fallback_true()[source]

Wrap style configuration that makes sure style is adjusted based on user configuration.

style_flow()[source]

Wrap style configuration that makes sure style is adjusted based on user configuration.

style_graph()[source]

Wrap style configuration that makes sure style is adjusted based on user configuration.

style_storage()[source]

Wrap style configuration that makes sure style is adjusted based on user configuration.

style_store_edge()[source]

Wrap style configuration that makes sure style is adjusted based on user configuration.

style_task()[source]

Wrap style configuration that makes sure style is adjusted based on user configuration.

selinon.user_config.style_configuration(style_name)[source]

Adjust style based on default style and provided style configuration (if any).