Use IANA URL settings from settings.py in some more places.
- Legacy-Id: 5676
This commit is contained in:
parent
e1cb2c45c0
commit
e4fd951f2c
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue