예제 #1
0
    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
예제 #2
0
  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
예제 #3
0
    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
예제 #4
0
  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