Skip to content

Commit 8313f3e

Browse files
committed
When looking for a specific revision for a draft, which could be a quite old revision, look in the aggregate draft archive which should contain all available versions of drafts, also those which are missing in the official secretariat archive. Fixes issue ietf-tools#1729.
- Legacy-Id: 9713
1 parent 8a78c9c commit 8313f3e

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

ietf/doc/tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ def setUp(self):
336336
if not os.path.exists(self.id_dir):
337337
os.mkdir(self.id_dir)
338338
settings.INTERNET_DRAFT_PATH = self.id_dir
339+
settings.INTERNET_ALL_DRAFTS_ARCHIVE_DIR = self.id_dir
339340
f = open(os.path.join(self.id_dir, 'draft-ietf-mars-test-01.txt'), 'w')
340341
f.write(self.draft_text)
341342
f.close()

ietf/doc/views_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def document_main(request, name, rev=None):
201201
else:
202202
filename = "%s-%s.txt" % (draft_name, doc.rev)
203203

204-
content = get_document_content(filename, os.path.join(settings.INTERNET_DRAFT_PATH, filename),
204+
content = get_document_content(filename, os.path.join(settings.INTERNET_ALL_DRAFTS_ARCHIVE_DIR, filename),
205205
split_content, markup=True)
206206

207207
# file types

ietf/settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,11 @@ def skip_unreadable_post(record):
347347
IESG_ROLL_CALL_FILE = '/a/www/www6/iesg/internal/rollcall.txt'
348348
IESG_MINUTES_FILE = '/a/www/www6/iesg/internal/minutes.txt'
349349
IESG_WG_EVALUATION_DIR = "/a/www/www6/iesg/evaluation"
350+
# Move drafts to this directory when they expire
350351
INTERNET_DRAFT_ARCHIVE_DIR = '/a/www/www6s/draft-archive'
352+
# The following directory contains linked copies of all drafts, but don't
353+
# write anything to this directory -- its content is maintained by ghostlinkd:
354+
INTERNET_ALL_DRAFTS_ARCHIVE_DIR = '/a/www/www6s/archive/id'
351355
MEETING_RECORDINGS_DIR = '/a/www/audio'
352356

353357
# Mailing list info URL for lists hosted on the IETF servers

0 commit comments

Comments
 (0)