def setup_domain(domain):
 data = get_domain(domain)
 setup_roles(data)
 setup_desktop_icons(data)
 setup_properties(data)
 set_values(data)
 setup_sidebar_items(data)
 if data.get(u'default_portal_role'):
  frappe.db.set_value(u'Portal Settings', None, u'default_role', data.get(u'default_portal_role'))
 frappe.clear_cache()

def setup_domain ( domain ) : data = get_domain ( domain ) setup_roles ( data ) setup_desktop_icons ( data ) setup_properties ( data ) set_values ( data ) setup_sidebar_items ( data ) if data . get ( u'default_portal_role' ) : frappe . db . set_value ( u'Portal Settings' , None , u'default_role' , data . get ( u'default_portal_role' ) ) frappe . clear_cache ( )
setup roles .