def get(self): session_id = get_session_id(session, request) constraint_id = request.args.get('constraint_id', -1) dao = PersonaCharacteristicDAO(session_id) pcs = dao.get_persona_characteristics(constraint_id=constraint_id) dao.close() resp = make_response(json_serialize(pcs, session_id=session_id)) resp.headers['Content-Type'] = "application/json" return resp