def get(self, dimension_name, object_name): session_id = get_session_id(session, request) dao = ObjectDependencyDAO(session_id) deps = dao.report_dependencies(dimension_name, object_name) dao.close() resp = make_response(json_serialize(deps, session_id=session_id), OK) resp.contenttype = 'application/json' return resp
def get(self,dimension_name,object_name): session_id = get_session_id(session, request) dao = ObjectDependencyDAO(session_id) deps = dao.report_dependencies(dimension_name,object_name) dao.close() resp = make_response(json_serialize(deps, session_id=session_id), OK) resp.contenttype = 'application/json' return resp
def delete(self, dimension_name, object_name): session_id = get_session_id(session, request) dao = ObjectDependencyDAO(session_id) deps = dao.delete_dependencies(dimension_name, object_name) dao.close() resp_dict = {'message': 'Object dependencies successfully deleted'} resp = make_response(json_serialize(resp_dict), OK) resp.contenttype = 'application/json' return resp
def delete(self,dimension_name,object_name): session_id = get_session_id(session, request) dao = ObjectDependencyDAO(session_id) deps = dao.delete_dependencies(dimension_name,object_name) dao.close() resp_dict = {'message': 'Object dependencies successfully deleted'} resp = make_response(json_serialize(resp_dict), OK) resp.contenttype = 'application/json' return resp