From 778146cf61fa45220f5c185f44a39353b65eac73 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 18 Oct 2010 15:00:38 -0500 Subject: Move hardcoded email address to settings file Signed-off-by: Dan McGee --- packages/views.py | 3 ++- settings.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/views.py b/packages/views.py index 60867d19..40e8a08e 100644 --- a/packages/views.py +++ b/packages/views.py @@ -1,5 +1,6 @@ from django import forms from django.contrib import messages +from django.conf import settings from django.core.mail import send_mail from django.template import loader, Context, RequestContext from django.http import HttpResponse, Http404 @@ -311,7 +312,7 @@ def flag(request, name='', repo='', arch=''): maints = pkg.maintainers if not maints: - toemail = ['arch-notifications@archlinux.org'] + toemail = settings.NOTIFICATIONS subject = 'Orphan %s package [%s] marked out-of-date' % \ (pkg.repo.name, pkg.pkgname) else: diff --git a/settings.py b/settings.py index 2334a47c..62ee336a 100644 --- a/settings.py +++ b/settings.py @@ -13,6 +13,9 @@ ADMINS = ( # Set managers to admins MANAGERS = ADMINS +# Package out of date emails for orphans +NOTIFICATIONS = ['arch-notifications@archlinux.org'] + # Full path to the data directory DEPLOY_PATH = os.path.dirname(os.path.realpath(__file__)) -- cgit v1.2.3-55-g3dc8