def get_component_review(app, id):
 sa_session = app.model.context.current
 return sa_session.query(app.model.ComponentReview).get(app.security.decode_id(id))

def get_component_review ( app , id ) : sa_session = app . model . context . current return sa_session . query ( app . model . ComponentReview ) . get ( app . security . decode_id ( id ) )
get a component_review from the database .