From e4fd951f2c4f8b6a259a60a033d38354894964ea Mon Sep 17 00:00:00 2001
From: Henrik Levkowetz <henrik@levkowetz.com>
Date: Sun, 21 Apr 2013 14:38:20 +0000
Subject: [PATCH] Use IANA URL settings from settings.py in some more places. 
 - Legacy-Id: 5676

---
 ietf/bin/iana-protocols-updates | 4 ++--
 ietf/sync/views.py              | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ietf/bin/iana-protocols-updates b/ietf/bin/iana-protocols-updates
index 7513ba589..57f9d38df 100755
--- a/ietf/bin/iana-protocols-updates
+++ b/ietf/bin/iana-protocols-updates
@@ -20,12 +20,12 @@ def chunks(l, n):
     """Split list l up in chunks of max size n."""
     return (l[i:i+n] for i in xrange(0, len(l), n))
 
-syslog.syslog("Updating history log with new RFC entries from IANA protocols page %s" % PROTOCOLS_URL)
+syslog.syslog("Updating history log with new RFC entries from IANA protocols page %s" % settings.IANA_SYNC_PROTOCOLS_URL)
 
 # FIXME: this needs to be the date where this tool is first deployed
 rfc_must_published_later_than = datetime.datetime(2012, 11, 26, 0, 0, 0)
 
-text = fetch_protocol_page(PROTOCOLS_URL)
+text = fetch_protocol_page(settings.IANA_SYNC_PROTOCOLS_URL)
 rfc_numbers = parse_protocol_page(text)
 for chunk in chunks(rfc_numbers, 100):
     updated = update_rfc_log_from_protocol_page(chunk, rfc_must_published_later_than)
diff --git a/ietf/sync/views.py b/ietf/sync/views.py
index 9be604c17..2a1e8a6a1 100644
--- a/ietf/sync/views.py
+++ b/ietf/sync/views.py
@@ -62,8 +62,8 @@ def notify(request, org, notification):
         return HttpResponseForbidden("You do not have the necessary permissions to view this page")
 
     known_notifications = {
-        "protocols": "an added reference to an RFC at <a href=\"%s\">the IANA protocols page</a>" % iana.PROTOCOLS_URL,
-        "changes": "new changes at <a href=\"%s\">the changes JSON dump</a>" % iana.CHANGES_URL,
+        "protocols": "an added reference to an RFC at <a href=\"%s\">the IANA protocols page</a>" % settings.IANA_SYNC_PROTOCOLS_URL,
+        "changes": "new changes at <a href=\"%s\">the changes JSON dump</a>" % settings.IANA_SYNC_CHANGES_URL,
         "queue": "new changes to <a href=\"%s\">queue2.xml</a>" % rfceditor.QUEUE_URL,
         "index": "new changes to <a href=\"%s\">rfc-index.xml</a>" % rfceditor.INDEX_URL,
         }