def g07(res, req, resp):

    # Set variances now that conneg is done
    hdr = []
    if len(res.content_types_provided(req, resp) or []) > 1:
        hdr.append("Accept")
    if len(res.charsets_provided(req, resp) or []) > 1:
        hdr.append("Accept-Charset")
    if len(res.encodings_provided(req, resp) or []) > 1:
        hdr.append("Accept-Encoding")
    if len(res.languages_provided(req, resp) or []) > 1:
        hdr.append("Accept-Language")
    hdr.extend(res.variances(req, resp))
    resp.vary = hdr

    return res.resource_exists(req, resp)
Resource exists?
dataset/ETHPy150Open benoitc/dj-webmachine/webmachine/decisions.py/g07