def rowids_gen(dataset_id): d = dataset_getter(dataset_id, type) r = asrange(flask.request.args.get('range',None)) ids = d.rowids(r[0] if r is not None else None) return jsonify(str(ranges.from_list(list(ids))))
def colids_matrix(dataset_id): d = dataset_getter(dataset_id, 'matrix') r = asrange(flask.request.args.get('range',None)) ids = d.colids(r[0] if r is not None else None) return jsonify(str(ranges.from_list(list(ids))))
def view_rowids_table(dataset_id, view_name): view, args = find_view(dataset_id, view_name) ids = view.rowids(args) return jsonify(str(ranges.from_list(list(ids))))