~barry/mailman/lp1423756

« back to all changes in this revision

Viewing changes to src/mailman/handlers/to_usenet.py

  • Committer: Barry Warsaw
  • Date: 2015-01-05 01:20:33 UTC
  • mfrom: (7264.4.66 py3)
  • Revision ID: barry@list.org-20150105012033-zdrw9c2odhpf22fz
Merge the Python 3 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Move the message to the mail->news queue."""
19
19
 
20
 
from __future__ import absolute_import, print_function, unicode_literals
21
 
 
22
 
__metaclass__ = type
23
20
__all__ = [
24
21
    'ToUsenet',
25
22
    ]
27
24
 
28
25
import logging
29
26
 
30
 
from zope.interface import implementer
31
 
 
32
27
from mailman.config import config
33
28
from mailman.core.i18n import _
34
29
from mailman.interfaces.handler import IHandler
 
30
from zope.interface import implementer
 
31
 
35
32
 
36
33
COMMASPACE = ', '
37
 
 
38
34
log = logging.getLogger('mailman.error')
39
35
 
40
36
 
65
61
                      COMMASPACE.join(error))
66
62
            return
67
63
        # Put the message in the news runner's queue.
68
 
        config.switchboards['nntp'].enqueue(
69
 
            msg, msgdata, listname=mlist.fqdn_listname)
 
64
        config.switchboards['nntp'].enqueue(msg, msgdata, listid=mlist.list_id)