From 497132407a0ed2c6b1ab67e89aa86f8217f5cd62 Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Wed, 4 Aug 2010 22:07:42 -0700 Subject: [PATCH] added the glue for emailing voters --- server_ui/__init__.py | 1 + server_ui/glue.py | 4 +--- settings.py.sample | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/server_ui/__init__.py b/server_ui/__init__.py index 8b46056..bb89b65 100644 --- a/server_ui/__init__.py +++ b/server_ui/__init__.py @@ -2,3 +2,4 @@ This django app is meant only to connect the pieces of Helios and Auth to present a clean UI """ +import glue diff --git a/server_ui/glue.py b/server_ui/glue.py index c74affb..376087a 100644 --- a/server_ui/glue.py +++ b/server_ui/glue.py @@ -39,11 +39,9 @@ Your voter alias is : %s # send it via the notification system associated with the auth system user.send_message(subject, body) -import logging -logging.error("connecting the vote_cast signal") helios.signals.vote_cast.connect(vote_cast_send_message) def election_tallied(election, **kwargs): pass -helios.signals.election_tallied.connect(election_tallied) \ No newline at end of file +helios.signals.election_tallied.connect(election_tallied) diff --git a/settings.py.sample b/settings.py.sample index 357624c..42fc18e 100644 --- a/settings.py.sample +++ b/settings.py.sample @@ -138,7 +138,7 @@ logging.basicConfig( level = logging.DEBUG, format = '%(asctime)s %(levelname)s %(message)s' ) - + # set up django-celery BROKER_HOST = "localhost" BROKER_PORT = 5672 -- GitLab