Use the right path for other document types in

/iesg/agenda/telechat-YYYY-MM-DD-docs.tgz which now as a side-effect
of the port can bundle more than just drafts
 - Legacy-Id: 6410
This commit is contained in:
Ole Laursen 2013-10-10 15:57:00 +00:00
parent bfde86f52b
commit 77aa4723bf

View file

@ -368,7 +368,7 @@ def telechat_docs_tarfile(request, date):
manifest = StringIO.StringIO()
for doc in docs:
doc_path = os.path.join(settings.INTERNET_DRAFT_PATH, doc.name + "-" + doc.rev + ".txt")
doc_path = os.path.join(doc.get_file_path(), doc.name + "-" + doc.rev + ".txt")
if os.path.exists(doc_path):
try:
tarstream.add(doc_path, str(doc.name + "-" + doc.rev + ".txt"))