def get_effective_domain_id(request):
 default_domain = get_default_domain(request)
 domain_id = default_domain.get('id')
 domain_name = default_domain.get('name')
 return (None if (domain_name == DEFAULT_DOMAIN) else domain_id)

def get_effective_domain_id ( request ) : default_domain = get_default_domain ( request ) domain_id = default_domain . get ( 'id' ) domain_name = default_domain . get ( 'name' ) return ( None if ( domain_name == DEFAULT_DOMAIN ) else domain_id )
gets the id of the default domain to use when creating identity objects .