def collection(id): require(request.authz.logged_in) collection = get_db_collection(id) channel_name = channel(collection) query = Notification.by_channel(channel_name) result = DatabaseQueryResult(request, query, schema=NotificationSchema) return jsonify(result)
def collection(id): require(request.authz.logged_in) collection = get_db_collection(id) channel_name = channel(collection) query = Notification.by_channel(channel_name) result = DatabaseQueryResult(request, query) return NotificationSerializer.jsonify_result(result)