Pulled out hardcoded IPR notification email receiver addresses from code and placed them in settings.py instead.
- Legacy-Id: 1062
This commit is contained in:
parent
06d41c76d2
commit
f3e6a30b97
|
@ -9,6 +9,7 @@ from datetime import datetime
|
|||
from django.shortcuts import render_to_response as render, get_object_or_404
|
||||
from django.template import RequestContext
|
||||
from django.http import Http404
|
||||
from django.conf import settings
|
||||
from ietf.utils import log
|
||||
from ietf.utils.mail import send_mail
|
||||
from ietf.ipr.view_sections import section_table
|
||||
|
@ -290,7 +291,7 @@ def new(request, type, update=None, submitter=None):
|
|||
iprrfc = models.IprRfc(document=rfc, ipr=instance)
|
||||
iprrfc.save()
|
||||
|
||||
send_mail(request, ['ietf-ipr@ietf.org', 'sunny.lee@neustar.biz'], ('IPR Submitter App', 'ietf-ipr@ietf.org'), 'New IPR Submission Notification', "ipr/new_update_email.txt", {"ipr": instance, "update": update})
|
||||
send_mail(request, settings.IPR_EMAIL_TO, ('IPR Submitter App', 'ietf-ipr@ietf.org'), 'New IPR Submission Notification', "ipr/new_update_email.txt", {"ipr": instance, "update": update})
|
||||
return render("ipr/submitted.html", {"update": update}, context_instance=RequestContext(request))
|
||||
else:
|
||||
if form.ietf_contact_is_submitter:
|
||||
|
|
|
@ -159,9 +159,11 @@ SERVER_MODE = 'development'
|
|||
# The name of the method to use to invoke the test suite
|
||||
TEST_RUNNER = 'ietf.tests.run_tests'
|
||||
|
||||
TEST_REFERENCE_URL_PREFIX = 'http://compost.research.att.com/old/'
|
||||
|
||||
IPR_DOCUMENT_PATH = '/home/local/ftp/data/ietf/IPR'
|
||||
|
||||
TEST_REFERENCE_URL_PREFIX = 'http://compost.research.att.com/old/'
|
||||
IPR_EMAIL_TO = ['ietf-ipr@ietf.org', ]
|
||||
|
||||
# Put SECRET_KEY in here, or any other sensitive or site-specific
|
||||
# changes. DO NOT commit settings_local.py to svn.
|
||||
|
|
Loading…
Reference in a new issue