~mailman-coders/mailman/2.1

« back to all changes in this revision

Viewing changes to Mailman/Gui/Digest.py

  • Committer: Mark Sapiro
  • Date: 2019-01-29 05:48:13 UTC
  • Revision ID: mark@msapiro.net-20190129054813-mgptc0jt6f4e21y3
Expand tabs in Python code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
            return None
41
41
        WIDTH = mm_cfg.TEXTFIELDWIDTH
42
42
 
43
 
        info = [
 
43
        info = [
44
44
            _("Batched-delivery digest characteristics."),
45
45
 
46
 
            ('digestable', mm_cfg.Toggle, (_('No'), _('Yes')), 1,
47
 
             _('Can list members choose to receive list traffic '
48
 
               'bunched in digests?')),
49
 
 
50
 
            ('digest_is_default', mm_cfg.Radio, 
51
 
             (_('Regular'), _('Digest')), 0,
52
 
             _('Which delivery mode is the default for new users?')),
53
 
 
54
 
            ('mime_is_default_digest', mm_cfg.Radio, 
55
 
             (_('Plain'), _('MIME')), 0,
56
 
             _('When receiving digests, which format is default?')),
57
 
 
58
 
            ('digest_size_threshhold', mm_cfg.Number, 3, 0,
59
 
             _('How big in Kb should a digest be before it gets sent out?'
 
46
            ('digestable', mm_cfg.Toggle, (_('No'), _('Yes')), 1,
 
47
             _('Can list members choose to receive list traffic '
 
48
               'bunched in digests?')),
 
49
 
 
50
            ('digest_is_default', mm_cfg.Radio, 
 
51
             (_('Regular'), _('Digest')), 0,
 
52
             _('Which delivery mode is the default for new users?')),
 
53
 
 
54
            ('mime_is_default_digest', mm_cfg.Radio, 
 
55
             (_('Plain'), _('MIME')), 0,
 
56
             _('When receiving digests, which format is default?')),
 
57
 
 
58
            ('digest_size_threshhold', mm_cfg.Number, 3, 0,
 
59
             _('How big in Kb should a digest be before it gets sent out?'
60
60
               '  0 implies no maximum size.')),
61
61
 
62
 
            ('digest_send_periodic', mm_cfg.Radio, (_('No'), _('Yes')), 1,
63
 
             _('Should a digest be dispatched daily when the size threshold '
64
 
               "isn't reached?")),
 
62
            ('digest_send_periodic', mm_cfg.Radio, (_('No'), _('Yes')), 1,
 
63
             _('Should a digest be dispatched daily when the size threshold '
 
64
               "isn't reached?")),
65
65
 
66
66
            ('digest_header', mm_cfg.Text, (4, WIDTH), 0,
67
 
             _('Header added to every digest'),
 
67
             _('Header added to every digest'),
68
68
             _("Text attached (as an initial message, before the table"
69
69
               " of contents) to the top of digests. ")
70
70
             + Utils.maketext('headfoot.html', raw=1, mlist=mlist)),
71
71
 
72
 
            ('digest_footer', mm_cfg.Text, (4, WIDTH), 0,
73
 
             _('Footer added to every digest'),
 
72
            ('digest_footer', mm_cfg.Text, (4, WIDTH), 0,
 
73
             _('Footer added to every digest'),
74
74
             _("Text attached (as a final message) to the bottom of digests. ")
75
75
             + Utils.maketext('headfoot.html', raw=1, mlist=mlist)),
76
76
 
89
89
            ('_send_digest_now', mm_cfg.Toggle, (_('No'), _('Yes')), 0,
90
90
             _('''Should Mailman send the next digest right now, if it is not
91
91
             empty?''')),
92
 
            ]
 
92
            ]
93
93
 
94
94
##        if mm_cfg.OWNERS_CAN_ENABLE_PERSONALIZATION:
95
95
##            info.extend([