Skip to content

Commit e4fd951

Browse files
committed
Use IANA URL settings from settings.py in some more places.
- Legacy-Id: 5676
1 parent e1cb2c4 commit e4fd951

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

ietf/bin/iana-protocols-updates

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ def chunks(l, n):
2020
"""Split list l up in chunks of max size n."""
2121
return (l[i:i+n] for i in xrange(0, len(l), n))
2222

23-
syslog.syslog("Updating history log with new RFC entries from IANA protocols page %s" % PROTOCOLS_URL)
23+
syslog.syslog("Updating history log with new RFC entries from IANA protocols page %s" % settings.IANA_SYNC_PROTOCOLS_URL)
2424

2525
# FIXME: this needs to be the date where this tool is first deployed
2626
rfc_must_published_later_than = datetime.datetime(2012, 11, 26, 0, 0, 0)
2727

28-
text = fetch_protocol_page(PROTOCOLS_URL)
28+
text = fetch_protocol_page(settings.IANA_SYNC_PROTOCOLS_URL)
2929
rfc_numbers = parse_protocol_page(text)
3030
for chunk in chunks(rfc_numbers, 100):
3131
updated = update_rfc_log_from_protocol_page(chunk, rfc_must_published_later_than)

ietf/sync/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def notify(request, org, notification):
6262
return HttpResponseForbidden("You do not have the necessary permissions to view this page")
6363

6464
known_notifications = {
65-
"protocols": "an added reference to an RFC at <a href=\"%s\">the IANA protocols page</a>" % iana.PROTOCOLS_URL,
66-
"changes": "new changes at <a href=\"%s\">the changes JSON dump</a>" % iana.CHANGES_URL,
65+
"protocols": "an added reference to an RFC at <a href=\"%s\">the IANA protocols page</a>" % settings.IANA_SYNC_PROTOCOLS_URL,
66+
"changes": "new changes at <a href=\"%s\">the changes JSON dump</a>" % settings.IANA_SYNC_CHANGES_URL,
6767
"queue": "new changes to <a href=\"%s\">queue2.xml</a>" % rfceditor.QUEUE_URL,
6868
"index": "new changes to <a href=\"%s\">rfc-index.xml</a>" % rfceditor.INDEX_URL,
6969
}

0 commit comments

Comments
 (0)