Skip to content

Commit

Permalink
Return only basic attributes
Browse files Browse the repository at this point in the history
Signed-off-by: Gustavo Jaruga <[email protected]>
Signed-off-by: Sergio Oliveira <[email protected]>
  • Loading branch information
seocam committed Oct 13, 2015
1 parent 2439fa8 commit 9ed4710
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions mailmanapi/apiv2.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 9ed4710

Please sign in to comment.