def fixup_sr(sr, request_id=None):
    "\n    Fix up an SR to try and ensure some basic info.\n    (In Chicago's API, any field can be missing, even if it's required.)\n    "
    remove_blacklisted_fields(sr)
    if ('service_request_id' not in sr):
        sr['service_request_id'] = (request_id or sr.get('token', 'UNKNOWN'))
    if ('status' not in sr):
        sr['status'] = 'open'
    if ('service_name' not in sr):
        sr['service_name'] = 'Miscellaneous Services'
    return sr
Fix up an SR to try and ensure some basic info.
(In Chicago's API, any field can be missing, even if it's required.)
def fixup_sr(sr, request_id=None):
    "\n    Fix up an SR to try and ensure some basic info.\n    (In Chicago's API, any field can be missing, even if it's required.)\n    "
    remove_blacklisted_fields(sr)
    if ('service_request_id' not in sr):
        sr['service_request_id'] = (request_id or sr.get('token', 'UNKNOWN'))
    if ('status' not in sr):
        sr['status'] = 'open'
    if ('service_name' not in sr):
        sr['service_name'] = 'Miscellaneous Services'
    return sr