From d95d089bc4557f9ab898e9624afee7f59a4afc0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20A=2E=20S=C3=A1nchez=20L=C3=B3pez?= Date: Sat, 12 Mar 2011 12:44:08 +0000 Subject: [PATCH] Use the correct filename when calling idnits. Fixes #611 - Legacy-Id: 2879 --- ietf/submit/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/submit/forms.py b/ietf/submit/forms.py index 9c1e5b81e..6a8a9d5aa 100644 --- a/ietf/submit/forms.py +++ b/ietf/submit/forms.py @@ -221,7 +221,7 @@ class UploadForm(forms.Form): return self.save_draft_info(self.draft) def check_idnits(self): - filepath = os.path.join(self.staging_path, self.cleaned_data['txt'].name) + filepath = os.path.join(self.staging_path, '%s-%s.txt' % (self.draft.filename, self.draft.revision)) p = subprocess.Popen([self.idnits, '--submitcheck', '--nitcount', filepath], stdout=subprocess.PIPE) self.idnits_message = p.stdout.read()