Skip to content

Commit 6b9f088

Browse files
committed
Use INTERNET_ALL_DRAFTS_ARCHIVE_DIR serve all IDs. Fixes ietf-tools#3308 and ietf-tools#3309. Commit ready for merge.
- Legacy-Id: 19166
1 parent 957afa9 commit 6b9f088

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ietf/doc/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ def build_file_urls(doc):
10381038
file_urls.append(("with errata", settings.RFC_EDITOR_INLINE_ERRATA_URL.format(rfc_number=doc.rfc_number())))
10391039
file_urls.append(("bibtex", urlreverse('ietf.doc.views_doc.document_main',kwargs=dict(name=name))+"bibtex"))
10401040
else:
1041-
base_path = os.path.join(settings.INTERNET_DRAFT_PATH, doc.name + "-" + doc.rev + ".")
1041+
base_path = os.path.join(settings.INTERNET_ALL_DRAFTS_ARCHIVE_DIR, doc.name + "-" + doc.rev + ".")
10421042
possible_types = settings.IDSUBMIT_FILE_TYPES
10431043
found_types = [t for t in possible_types if os.path.exists(base_path + t)]
10441044
base = settings.IETF_ID_ARCHIVE_URL
@@ -1228,4 +1228,4 @@ def update_doc_extresources(doc, new_resources, by):
12281228
old_res_strs, new_res_strs)
12291229
e.save()
12301230
doc.save_with_history([e])
1231-
return True
1231+
return True

0 commit comments

Comments
 (0)