diff options
| author | cotton | 1998-10-23 12:23:19 +0000 |
|---|---|---|
| committer | cotton | 1998-10-23 12:23:19 +0000 |
| commit | 4f374e8529acc9f5fc4c700fc332789db142c15c (patch) | |
| tree | e999de47f3cb83bedb6f29942e991f6597a9c8d0 /Mailman/Cgi/admin.py | |
| parent | d2ee611f7c0892ccc182599182a28913dc2a7ebc (diff) | |
| download | mailman-4f374e8529acc9f5fc4c700fc332789db142c15c.tar.gz mailman-4f374e8529acc9f5fc4c700fc332789db142c15c.tar.zst mailman-4f374e8529acc9f5fc4c700fc332789db142c15c.zip | |
changed the site site variable ADMIN_MEMBER_CHUNKSIZE to a per-list
variable (admin_member_chunksize). this is not yet settable by means
of cgi, but you can set it at an interactive python session. This is
a start on making the membership management part of the admin cgi
scalable for really big lists.
details:
* up'd DATA_FILE_VERSION in Mailman/Defaults.py.in
* replaced ADMIN_MEMBER_CHUNKSIZE with DEFAULT_ADMIN_MEMBER_CHUNKSIZE in
Mailman/Defaults.py.in.
* added a list variable assignment in Mailman.MailList.InitVars
* added code to add the admin_member_chunksize attribute to a list
when versions change in Mailman/versions.py
* made admin.py format members according to
list.admin_member_chunksize instead of mm_cfg.ADMIN_MEMBER_CHUNKSIZE
scott
Diffstat (limited to 'Mailman/Cgi/admin.py')
| -rw-r--r-- | Mailman/Cgi/admin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Cgi/admin.py b/Mailman/Cgi/admin.py index 4cd92a6fc..a8597a61b 100644 --- a/Mailman/Cgi/admin.py +++ b/Mailman/Cgi/admin.py @@ -494,8 +494,8 @@ def FormatMembershipOptions(lst): for member in lst.digest_members: digests[member] = 1 all = lst.members + lst.digest_members - if len(all) > mm_cfg.ADMIN_MEMBER_CHUNKSIZE: - chunks = Utils.chunkify(all) + if len(all) > lst.admin_member_chunksize: + chunks = Utils.chunkify(all, lst.admin_member_chunksize) if not cgi_data.has_key("chunk"): chunk = 0 else: |
