diff options
| author | bwarsaw | 2001-07-18 22:14:17 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-07-18 22:14:17 +0000 |
| commit | c25b14b37811e636d957fa1cc101620560395e48 (patch) | |
| tree | f1428137ef7674e989857fd43ab8c11fb518544a /Mailman/Digester.py | |
| parent | 2bd68751c1e6c8820923d254a6f50901f87a057a (diff) | |
| download | mailman-c25b14b37811e636d957fa1cc101620560395e48.tar.gz mailman-c25b14b37811e636d957fa1cc101620560395e48.tar.zst mailman-c25b14b37811e636d957fa1cc101620560395e48.zip | |
Diffstat (limited to 'Mailman/Digester.py')
| -rw-r--r-- | Mailman/Digester.py | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/Mailman/Digester.py b/Mailman/Digester.py index 215b083c8..2d8fe1aa1 100644 --- a/Mailman/Digester.py +++ b/Mailman/Digester.py @@ -46,88 +46,6 @@ class Digester: self.next_digest_number = 1 self.digest_last_sent_at = 0 - def GetConfigInfo(self): - WIDTH = mm_cfg.TEXTFIELDWIDTH - os.environ['LANG'] = self.preferred_language - - return [ - _("Batched-delivery digest characteristics."), - - ('digestable', mm_cfg.Toggle, (_('No'), _('Yes')), 1, - _('Can list members choose to receive list traffic ' - 'bunched in digests?')), - - ('digest_is_default', mm_cfg.Radio, - (_('Regular'), _('Digest')), 0, - _('Which delivery mode is the default for new users?')), - - ('mime_is_default_digest', mm_cfg.Radio, - (_('Plain'), _('MIME')), 0, - _('When receiving digests, which format is default?')), - - ('digest_size_threshhold', mm_cfg.Number, 3, 0, - _('How big in Kb should a digest be before it gets sent out?')), - # Should offer a 'set to 0' for no size threshhold. - - ('digest_send_periodic', mm_cfg.Radio, (_('No'), _('Yes')), 1, - _('Should a digest be dispatched daily when the size threshold ' - "isn't reached?")), - - ('digest_header', mm_cfg.Text, (4, WIDTH), 0, - _('Header added to every digest'), - _("Text attached (as an initial message, before the table" - " of contents) to the top of digests. ") - + Utils.maketext('headfoot.html', raw=1, mlist=self)), - - ('digest_footer', mm_cfg.Text, (4, WIDTH), 0, - _('Footer added to every digest'), - _("Text attached (as a final message) to the bottom of digests. ") - + Utils.maketext('headfoot.html', raw=1, mlist=self)), - - ('digest_volume_frequency', mm_cfg.Radio, - (_('Yearly'), _('Monthly'), _('Quarterly'), - _('Weekly'), _('Daily')), 0, - _('How often should a new digest volume be started?'), - _('''When a new digest volume is started, the volume number is - incremented and the issue number is reset to 1.''')), - - ('_new_volume', mm_cfg.Toggle, (_('No'), _('Yes')), 0, - _('Should Mailman start a new digest volume?'), - _('''Setting this option instructs Mailman to start a new volume - with the next digest sent out.''')), - - ('_send_digest_now', mm_cfg.Toggle, (_('No'), _('Yes')), 0, - _('''Should Mailman send the next digest right now, if it is not - empty?''')), - ] - - def SetUserDigest(self, sender, value, force=0): - self.IsListInitialized() - addr = self.FindUser(sender) - if not addr: - raise Errors.MMNotAMemberError - cpuser = self.GetUserSubscribedAddress(addr) - if self.members.has_key(addr): - if value == 0: - raise Errors.MMAlreadyUndigested - else: - if not force and not self.digestable: - raise Errors.MMCantDigestError - del self.members[addr] - self.digest_members[addr] = cpuser - else: - if value == 1: - raise Errors.MMAlreadyDigested - else: - if not force and not self.nondigestable: - raise Errors.MMMustDigestError - try: - self.one_last_digest[addr] = self.digest_members[addr] - except AttributeError: - self.one_last_digest = {addr: self.digest_members[addr]} - del self.digest_members[addr] - self.members[addr] = cpuser - def send_digest_now(self): # Note: Handler.ToDigest.send_digests() handles bumping the digest # volume and issue number. |
