Exemple #1
0
    def ready(self):
        from mafiasi.mail.signals import collect_servers
        from mafiasi.mailinglist.server import MailinglistServer

        def _attach_server(sender, servers, **kwargs):
            servers.append((MailinglistServer, (settings.MAILINGLIST_SERVER, None)))
        collect_servers.connect(_attach_server, weak=False)
Exemple #2
0
from django.conf import settings

from mafiasi.mail.signals import collect_servers

def _attach_server(sender, servers, **kwargs):
    from mafiasi.mail.cloakserver import CloakServer
    servers.append((CloakServer, (settings.MAILCLOAK_SERVER, None)))
collect_servers.connect(_attach_server)
Exemple #3
0
from django.conf import settings

from mafiasi.mail.signals import collect_servers


def _attach_server(sender, servers, **kwargs):
    from mafiasi.mail.cloakserver import CloakServer
    servers.append((CloakServer, (settings.MAILCLOAK_SERVER, None)))


collect_servers.connect(_attach_server)