From 9ed4710effeb216b850a25252c7cdc2ef6eedc9c Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Tue, 13 Oct 2015 11:05:35 -0300 Subject: [PATCH] Return only basic attributes Signed-off-by: Gustavo Jaruga Signed-off-by: Sergio Oliveira --- mailmanapi/apiv2.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mailmanapi/apiv2.py b/mailmanapi/apiv2.py index c04348b..898e0f5 100644 --- a/mailmanapi/apiv2.py +++ b/mailmanapi/apiv2.py @@ -1,8 +1,7 @@ import os import uuid -from .utils import (parse_boolean, jsonify, get_mailinglist, - get_timestamp, get_public_attributes) +from .utils import parse_boolean, jsonify, get_mailinglist, get_timestamp from Mailman import (Errors, Post, mm_cfg, UserDesc, MailList, Utils, Defaults) from bottle import request, template @@ -51,8 +50,12 @@ def list_lists(): members = mlist.getMembers() if not address or address in members: - list_values = get_public_attributes(mlist) - list_values["listname"] = listname + list_values = { + 'listname': listname, + 'archive_private': mlist.archive_private, + 'real_name': mlist.real_name, + 'description': mlist.description, + } lists.append(list_values)