~andrea-crotti-0/mailman/version

« back to all changes in this revision

Viewing changes to src/mailman/app/notifications.py

  • Committer: Barry Warsaw
  • Date: 2012-03-04 04:29:26 UTC
  • Revision ID: barry@list.org-20120304042926-c8c09v9tddrgj5zg
 * Support downloading templates by URI, including mailman:// URIs.  This is
   used in welcome and goodbye messages, and supports both language and
   mailing list specifications.  E.g. mailman:///test@example.com/it/welc.txt

 * Schema changes:
   - welcome_msg -> welcome_message_uri
   - goodbye_msg -> goodbye_message_uri
   - send_welcome_msg -> send_welcome_message
   - send_goodbye_msg -> send_goodbye_message

 * New `ITemplateLoader` utility.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    :param delivery_mode: the type of delivery the subscriber is getting
55
55
    :type delivery_mode: DeliveryMode
56
56
    """
57
 
    if mlist.welcome_msg:
58
 
        welcome = wrap(mlist.welcome_msg) + '\n'
 
57
    if mlist.welcome_message_uri:
 
58
        welcome = wrap(mlist.welcome_message_uri) + '\n'
59
59
    else:
60
60
        welcome = ''
61
61
    # Find the IMember object which is subscribed to the mailing list, because