
On 9/22/19 9:47 PM, sandeep kumar wrote:
I think I have resolved the issue. I have enabled the disabling the archive by default.
Made below changes under the /mailman/src/mailman/styles/base.py
208 @public 209 class Noarchive: 210 """Settings for noarchive mailing lists.""" 211 212 def apply(self, mailing_list): 213 mlist = mailing_list 214 mlist.advertised = False 215 mlist.archive_policy = ArchivePolicy.never
and also made below changes in the /mailman/src/mailman/styles/default.py
You may have done this, but you also need to change lines 22-24 from
from mailman.styles.base import ( Announcement, BasicOperation, Bounces, Discussion, Identity, Moderation, Private, Public)
to
from mailman.styles.base import ( Announcement, BasicOperation, Bounces, Discussion, Identity, Moderation, NoArchive, Private, Public)
90 @public 91 @implementer(IStyle) 92 class NoarchiveDefaultStyle( 93 Identity, BasicOperation, Bounces, Noarchive, Discussion, Moderation): 94 95 """Style for mailing-lists with private archives.""" 96 97 name = 'Noarchive-default' 98 description = _('Do not archive the list.')
I would make this
description = _('Discussion mailing list style with no archives.')
99 100 def apply(self, mailing_list): 101 """See
IStyle
.""" 102 Identity.apply(self, mailing_list) 103 BasicOperation.apply(self, mailing_list) 104 Bounces.apply(self, mailing_list) 105 Noarchive.apply(self, mailing_list) 106 Discussion.apply(self, mailing_list) 107 Moderation.apply(self, mailing_list)Can you please check if the code is fine. I have also checked by creating a new list and checked the database entries in the table for "0" value (NO Archives)
Comments inline above. Also, you must have added the import of NoArchive somewhere in styles/default.py, or it couldn't have worked.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan