def set_enterprise_branding_filter_param(request, provider_id):
 ec_uuid = request.GET.get('ec_src', None)
 if provider_id:
  LOGGER.info("Session key 'ENTERPRISE_CUSTOMER_BRANDING_OVERRIDE_DETAILS' has been set with provider_id '%s'", provider_id)
  request.session[ENTERPRISE_CUSTOMER_BRANDING_OVERRIDE_DETAILS] = {'provider_id': provider_id}
 elif ec_uuid:
  LOGGER.info("Session key 'ENTERPRISE_CUSTOMER_BRANDING_OVERRIDE_DETAILS' has been set with ec_uuid '%s'", ec_uuid)
  request.session[ENTERPRISE_CUSTOMER_BRANDING_OVERRIDE_DETAILS] = {'ec_uuid': ec_uuid}

def set_enterprise_branding_filter_param ( request , provider_id ) : ec_uuid = request . GET . get ( 'ec_src' , None ) if provider_id : LOGGER . info ( "Session key 'ENTERPRISE_CUSTOMER_BRANDING_OVERRIDE_DETAILS' has been set with provider_id '%s'" , provider_id ) request . session [ ENTERPRISE_CUSTOMER_BRANDING_OVERRIDE_DETAILS ] = { 'provider_id' : provider_id } elif ec_uuid : LOGGER . info ( "Session key 'ENTERPRISE_CUSTOMER_BRANDING_OVERRIDE_DETAILS' has been set with ec_uuid '%s'" , ec_uuid ) request . session [ ENTERPRISE_CUSTOMER_BRANDING_OVERRIDE_DETAILS ] = { 'ec_uuid' : ec_uuid }
setting enterprise_customer_branding_override_details in session .