# Add this colorspace into the main list of colorspaces
config_data['colorSpaces'].append(colorspace)
# Add this colorspace into the main list of colorspaces
config_data['colorSpaces'].append(colorspace)
alias_colorspaces.append(
[reference_data, reference_data, reference_data.aliases])
alias_colorspaces.append(
[reference_data, reference_data, reference_data.aliases])
alias_colorspaces.append(
[reference_data, colorspace, colorspace.aliases])
alias_colorspaces.append(
[reference_data, colorspace, colorspace.aliases])
add_colorspace_aliases(config, reference_data, role_colorspace, [role_name], 'Roles')
"""
add_colorspace_aliases(config, reference_data, role_colorspace, [role_name], 'Roles')
"""
# We add these at the end as some applications use the order of the colorspaces
# definitions in the config to order the colorspaces in their selection lists.
# We add these at the end as some applications use the order of the colorspaces
# definitions in the config to order the colorspaces in their selection lists.
for reference, colorspace, aliases in alias_colorspaces:
add_colorspace_aliases(config, reference, colorspace, aliases)
for reference, colorspace, aliases in alias_colorspaces:
add_colorspace_aliases(config, reference, colorspace, aliases)
config.setActiveDisplays(','.join(sorted(displays)))
config.setActiveViews(','.join(views))
config.setActiveDisplays(','.join(sorted(displays)))
config.setActiveViews(','.join(views))