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@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.
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=detail&aid=1164457&group_id=103&atid=300103, 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 The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Karen R McArthur
-
Mark Sapiro