~barry/mailman/events-and-web

« back to all changes in this revision

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

  • Committer: Barry Warsaw
  • Date: 2012-11-25 20:48:08 UTC
  • Revision ID: barry@list.org-20121125204808-g0pvuil2xq559k4p
Interim commit for refactoring out web-centric logic.

* Use SubscriptionEvent to handle the sending of the welcome message.
* Use ConfirmationNeededEvent to send the confirmation message.
* For now, hard code the adminurl and comment out the listinfo_uri.
* Pend the list-id instead of the fqdn-listname
* Use the new configuration support for Postfix settings.
* Get rid of the IDomain's url_host, base_url, and scheme attributes, as well
  as the confirm_url() method. 
* Get rid of the IMailingList's script_url() method.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
from zope import event
29
29
 
30
 
from mailman.app import domain, moderator, subscriptions
 
30
from mailman.app import (
 
31
    domain, membership, moderator, registrar, subscriptions)
31
32
from mailman.core import i18n, switchboard
32
33
from mailman.languages import manager as language_manager
33
34
from mailman.styles import manager as style_manager
39
40
    """Initialize global event subscribers."""
40
41
    event.subscribers.extend([
41
42
        domain.handle_DomainDeletingEvent,
 
43
        i18n.handle_ConfigurationUpdatedEvent,
 
44
        language_manager.handle_ConfigurationUpdatedEvent,
 
45
        membership.handle_SubscriptionEvent,
42
46
        moderator.handle_ListDeletingEvent,
43
47
        passwords.handle_ConfigurationUpdatedEvent,
 
48
        registrar.handle_ConfirmationNeededEvent,
 
49
        style_manager.handle_ConfigurationUpdatedEvent,
44
50
        subscriptions.handle_ListDeletingEvent,
45
51
        switchboard.handle_ConfigurationUpdatedEvent,
46
 
        i18n.handle_ConfigurationUpdatedEvent,
47
 
        style_manager.handle_ConfigurationUpdatedEvent,
48
 
        language_manager.handle_ConfigurationUpdatedEvent,
49
52
        ])