(collection, request, object_type, object_key)
Getter handler for objects in a Mapping type collection.
Getter handler for objects in a Mapping type collection.
Getter handler for objects in a Mapping type collection .
def _map_getter(collection, request, object_type, object_key):
    """
    Getter handler for objects in a Mapping type collection.
    """
    try:
        obj = _get_object(collection, object_type, object_key)
        return json.dumps(obj.to_json())
    except ObjectDoesNotExist as e:
        request.setResponseCode(e.code)
        return json.dumps(e.to_json())
def _map_getter ( collection , request , object_type , object_key ) : try : obj = _get_object ( collection , object_type , object_key ) return json . dumps ( obj . to_json ( ) ) except ObjectDoesNotExist as e : request . setResponseCode ( e . code ) return json . dumps ( e . to_json ( ) )