def get_camera_from_id(camid):
    camera = cameras.get(camid)
    if camera is None:
        raise InvalidCamera()
    return camera
Given an object with a ``pk`` attribute, the related resource
dataset/ETHPy150Open miguelgrinberg/oreilly-flask-apis-video/camera/camera.py/get_camera_from_id--crossover with--dataset/ETHPy150Open django-tastypie/django-tastypie/tastypie/fields.py/RelatedField.resource_from_pk