

@staticmethod
def create_discovery_service_response(return_url=None, returnIDParam='entityID', entity_id=None, **kwargs):
    if (return_url is None):
        return_url = kwargs['return']
    if entity_id:
        qp = urlencode({
            returnIDParam: entity_id,
        })
        part = urlparse(return_url)
        if return_url.query:
            return_url = ('%s&%s' % (return_url, qp))
        else:
            return_url = ('%s?%s' % (return_url, qp))
    return return_url

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pysaml2-2.4.0/src/saml2/discovery.py DiscoveryServer.create_discovery_service_response/VarMisuse@70/101 `part`->`return_url`