(domain)
Outside of tests this is only called when creating a new domain
Outside of tests this is only called when creating a new domain
Outside of tests this is only called when creating a new domain
def initialize_domain_with_default_roles(domain):
    """Outside of tests this is only called when creating a new domain"""
    for role_name in UserRolePresets.INITIAL_ROLES:
        UserRole.create(domain, role_name, permissions=UserRolePresets.get_permissions(role_name))
def initialize_domain_with_default_roles ( domain ) : for role_name in UserRolePresets . INITIAL_ROLES : UserRole . create ( domain , role_name , permissions = UserRolePresets . get_permissions ( role_name ) )