FAQ
I have applied the "site_hide_list_options.patch" in order to limit
owner access to the list configurations via the web interface - however,
a side effect of this is that our mailman admin cannot access those
options either. (true, I can export the config, modify the text file
and re-apply the config to the list, but that is very labor intensive...)

How can I limit the list owners - yet still allow the mailman admin
access to ALL the options via the web?

--
Karen R. McArthur <kmcarthu at bates.edu>
Systems Administrator
Information and Library Services, Bates College
Lewiston, Maine 04240 USA
ph:(207)786-8236 fax:(207)786-6057

If you find that everybody else is right and you're wrong,
it might just be that you're thinking outside the box. The
world is yet to catch up.

Search Discussions

  • Mark Sapiro at Aug 25, 2008 at 8:44 pm

    Karen R McArthur wrote:
    I have applied the "site_hide_list_options.patch" in order to limit
    owner access to the list configurations via the web interface - however,
    a side effect of this is that our mailman admin cannot access those
    options either. (true, I can export the config, modify the text file
    and re-apply the config to the list, but that is very labor intensive...)

    You could just run bin/config_list with an input file consisting of
    only the setting(s) for the attribute(s) you want to change.

    How can I limit the list owners - yet still allow the mailman admin
    access to ALL the options via the web?

    Assuming you mean the patch at
    <http://sourceforge.net/tracker/index.php?funcÞtail&aid64457&group_id3&atid00103>,
    you could try the following modification to the MailList.py part of
    the patch. Warning! - untested. The modification is the addition of
    two lines immediately following

    if value:


    Index: trunk/Mailman/MailList.py
    ==================================================================--- trunk/Mailman/MailList.py (revision 16)
    +++ trunk/Mailman/MailList.py (working copy)
    @@ -426,6 +426,20 @@
    if hasattr(gui, 'GetConfigInfo'):
    value = gui.GetConfigInfo(self, category, subcat)
    if value:
    + if self.CheckCookie(mm_cfg.AuthSiteAdmin):
    + return value
    + title = None
    + for item in value[1:]:
    + if not isinstance(item, TupleType):
    + if title is not None:
    + value.remove(title)
    + title = item
    + if not isinstance(item, TupleType) or
    len(item) < 5:
    + continue
    + if item[0] in mm_cfg.SITE_HIDE_LIST_OPTIONS:
    + value.remove(item)
    + else:
    + title = None
    return value


    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedAug 25, '08 at 6:21p
activeAug 25, '08 at 8:44p
posts2
users2
websitelist.org

2 users in discussion

Mark Sapiro: 1 post Karen R McArthur: 1 post

People

Translate

site design / logo © 2022 Grokbase