Skip to content

Commit 88e1d72

Browse files
committed
Moved settings for RFC-Editor sync to settings.py.
- Legacy-Id: 5775
1 parent 8eec9cc commit 88e1d72

5 files changed

Lines changed: 10 additions & 7 deletions

File tree

ietf/idrfc/views_ballot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ def approve_ballotREDESIGN(request, name):
10201020
if new_state.slug == "ann" and not request.REQUEST.get("skiprfceditorpost"):
10211021
# start by notifying the RFC Editor
10221022
import ietf.sync.rfceditor
1023-
response, error = ietf.sync.rfceditor.post_approved_draft(ietf.sync.rfceditor.POST_APPROVED_DRAFT_URL, doc.name)
1023+
response, error = ietf.sync.rfceditor.post_approved_draft(settings.RFC_EDITOR_SYNC_NOTIFICATION_URL, doc.name)
10241024
if error:
10251025
return render_to_response('doc/rfceditor_post_approved_draft_failed.html',
10261026
dict(name=doc.name,

ietf/idrfc/views_edit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ def request_publication(request, name):
10911091
if not request.REQUEST.get("skiprfceditorpost"):
10921092
# start by notifying the RFC Editor
10931093
import ietf.sync.rfceditor
1094-
response, error = ietf.sync.rfceditor.post_approved_draft(ietf.sync.rfceditor.POST_APPROVED_DRAFT_URL, doc.name)
1094+
response, error = ietf.sync.rfceditor.post_approved_draft(settings.RFC_EDITOR_SYNC_NOTIFICATION_URL, doc.name)
10951095
if error:
10961096
return render_to_response('doc/rfceditor_post_approved_draft_failed.html',
10971097
dict(name=doc.name,

ietf/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,9 @@
278278
IANA_SYNC_PROTOCOLS_URL = "http://www.iana.org/protocols/"
279279

280280
RFC_EDITOR_SYNC_PASSWORD="secret"
281+
RFC_EDITOR_SYNC_NOTIFICATION_URL = "http://www.rfc-editor.org/parser/parser.php"
282+
RFC_EDITOR_QUEUE_URL = "http://www.rfc-editor.org/queue2.xml"
283+
RFC_EDITOR_INDEX_URL = "http://www.rfc-editor.org/rfc/rfc-index.xml"
281284

282285
# Liaison Statement Tool settings
283286
LIAISON_UNIVERSAL_FROM = 'Liaison Statement Management Tool <lsmt@' + IETF_DOMAIN + '>'

ietf/sync/rfceditor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
from ietf.name.models import *
1111
from ietf.doc.utils import add_state_change_event
1212

13-
QUEUE_URL = "http://www.rfc-editor.org/queue2.xml"
14-
INDEX_URL = "http://www.rfc-editor.org/rfc/rfc-index.xml"
15-
POST_APPROVED_DRAFT_URL = "https://www.rfc-editor.org/sdev/jsonexp/jsonparser.php"
13+
#QUEUE_URL = "http://www.rfc-editor.org/queue2.xml"
14+
#INDEX_URL = "http://www.rfc-editor.org/rfc/rfc-index.xml"
15+
#POST_APPROVED_DRAFT_URL = "https://www.rfc-editor.org/sdev/jsonexp/jsonparser.php"
1616

1717
MIN_QUEUE_RESULTS = 10
1818
MIN_INDEX_RESULTS = 5000

ietf/sync/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ def notify(request, org, notification):
6464
known_notifications = {
6565
"protocols": "an added reference to an RFC at <a href=\"%s\">the IANA protocols page</a>" % settings.IANA_SYNC_PROTOCOLS_URL,
6666
"changes": "new changes at <a href=\"%s\">the changes JSON dump</a>" % settings.IANA_SYNC_CHANGES_URL,
67-
"queue": "new changes to <a href=\"%s\">queue2.xml</a>" % rfceditor.QUEUE_URL,
68-
"index": "new changes to <a href=\"%s\">rfc-index.xml</a>" % rfceditor.INDEX_URL,
67+
"queue": "new changes to <a href=\"%s\">queue2.xml</a>" % settings.RFC_EDITOR_QUEUE_URL,
68+
"index": "new changes to <a href=\"%s\">rfc-index.xml</a>" % settings.RFC_EDITOR_INDEX_URL,
6969
}
7070

7171
if notification not in known_notifications:

0 commit comments

Comments
 (0)