Skip to content

Commit b058ba2

Browse files
committed
Remove the ability to submit Postscript I-Ds.
Commit ready for merge. Fixes ietf-tools#3448. - Legacy-Id: 19486
1 parent 126892d commit b058ba2

File tree

6 files changed

+3
-40
lines changed

6 files changed

+3
-40
lines changed

ietf/submit/forms.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
from ietf.submit.utils import validate_submission_name, validate_submission_rev, validate_submission_document_date
3737
from ietf.submit.parsers.pdf_parser import PDFParser
3838
from ietf.submit.parsers.plain_parser import PlainParser
39-
from ietf.submit.parsers.ps_parser import PSParser
4039
from ietf.submit.parsers.xml_parser import XMLParser
4140
from ietf.utils import log
4241
from ietf.utils.draft import Draft
@@ -450,7 +449,6 @@ class SubmissionManualUploadForm(SubmissionBaseUploadForm):
450449
# html for version 3 xml submissions.
451450
# html = forms.FileField(label='.html format', required=False)
452451
pdf = forms.FileField(label='.pdf format', required=False)
453-
ps = forms.FileField(label='.ps format', required=False)
454452

455453
def __init__(self, request, *args, **kwargs):
456454
super(SubmissionManualUploadForm, self).__init__(request, *args, **kwargs)
@@ -463,9 +461,6 @@ def clean_txt(self):
463461
def clean_pdf(self):
464462
return self.clean_file("pdf", PDFParser)
465463

466-
def clean_ps(self):
467-
return self.clean_file("ps", PSParser)
468-
469464
class SubmissionAutoUploadForm(SubmissionBaseUploadForm):
470465
user = forms.EmailField(required=True)
471466

@@ -671,4 +666,4 @@ def __init__(self, *args, **kwargs):
671666
super(MessageModelForm, self).__init__(*args, **kwargs)
672667
self.fields['frm'].label='From'
673668
self.fields['frm'].widget.attrs['readonly'] = 'True'
674-
self.fields['reply_to'].widget.attrs['readonly'] = 'True'
669+
self.fields['reply_to'].widget.attrs['readonly'] = 'True'

ietf/submit/parsers/ps_parser.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

ietf/submit/test_submission.ps

-35 Bytes
Binary file not shown.

ietf/submit/tests.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ def test_submit_all_file_types(self):
14921492
rev = "00"
14931493
group = "mars"
14941494

1495-
self.do_submission(name, rev, group, ["txt", "xml", "ps", "pdf"])
1495+
self.do_submission(name, rev, group, ["txt", "xml", "pdf"])
14961496

14971497
self.assertEqual(Submission.objects.filter(name=name).count(), 1)
14981498

@@ -1503,8 +1503,6 @@ def test_submit_all_file_types(self):
15031503
self.assertTrue('<?xml version="1.0" encoding="UTF-8"?>' in io.open(os.path.join(self.staging_dir, "%s-%s.xml" % (name, rev))).read())
15041504
self.assertTrue(os.path.exists(os.path.join(self.staging_dir, "%s-%s.pdf" % (name, rev))))
15051505
self.assertTrue('This is PDF' in io.open(os.path.join(self.staging_dir, "%s-%s.pdf" % (name, rev))).read())
1506-
self.assertTrue(os.path.exists(os.path.join(self.staging_dir, "%s-%s.ps" % (name, rev))))
1507-
self.assertTrue('This is PostScript' in io.open(os.path.join(self.staging_dir, "%s-%s.ps" % (name, rev))).read())
15081506

15091507
def test_expire_submissions(self):
15101508
s = Submission.objects.create(name="draft-ietf-mars-foo",
@@ -1664,12 +1662,6 @@ def test_submit_bad_file_pdf(self):
16641662
self.assertIn('Expected the PDF file to have extension ".pdf"', m)
16651663
self.assertIn('Expected an PDF file of type "application/pdf"', m)
16661664

1667-
def test_submit_bad_file_ps(self):
1668-
r, q, m = self.submit_bad_file("some name", ["ps"])
1669-
self.assertIn('Invalid characters were found in the name', m)
1670-
self.assertIn('Expected the PS file to have extension ".ps"', m)
1671-
self.assertIn('Expected an PS file of type "application/postscript"', m)
1672-
16731665
def test_submit_file_in_archive(self):
16741666
name = "draft-authorname-testing-file-exists"
16751667
rev = '00'

ietf/templates/submit/tool_instructions.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h2>I-D submission tool instructions</h2>
3838

3939
<h3>Upload screen</h3>
4040
<p>
41-
The Upload screen is the first screen that a user will see when he or she starts the I-D submission process. A user can submit four different formats of an I-D, plain text, XML, PDF, and postscript, at the same time. Failure to submit at least one of a plain-text or xml version will cause an error, and an error screen will be displayed. A single v3 .xml source is preferred. A single v2 .xml source will be accepted. If neither of those are available, a plain-text document may be provided.
41+
The Upload screen is the first screen that a user will see when he or she starts the I-D submission process. A user can submit three different formats of an I-D, XML, plain-text, and PDF, at the same time. Failure to submit at least one of a plain-text or xml version will cause an error, and an error screen will be displayed. A single v3 .xml source is preferred. A single v2 .xml source will be accepted. If neither of those are available, a plain-text document may be provided.
4242
</p>
4343

4444
<p>
@@ -70,10 +70,6 @@ <h3>Upload screen</h3>
7070
<th>.pdf format</th>
7171
<td>Button to select a PDF file of an I-D from a user's local file system. </td>
7272
</tr>
73-
<tr>
74-
<th>.ps format</th>
75-
<td>Button to select a postscript file of an I-D from a user's local file system. </td>
76-
</tr>
7773
<tr>
7874
<th>Upload</th>
7975
<td>Button to upload the document(s). The tool will begin parsing the plain-text document (or creating it from the xml if only xml is provided) and validate the document. The parsed meta-data will be displayed for user confirmation along with the validation results.</td>

ietf/templates/submit/upload_submission.html

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,6 @@
8080
on the submitted XML.
8181
</p>
8282
</div>
83-
84-
<div class="form-group">
85-
{% bootstrap_field form.ps label='<i class="fa fw-fw fa-file-image-o" aria-hidden="true"></i> Postscript rendering of the I-D'%}
86-
<p class="help-block">
87-
Optional to submit, will be auto-generated based
88-
on the submitted XML.
89-
</p>
90-
</div>
9183
</div>
9284

9385
{% bootstrap_form_errors form %}

0 commit comments

Comments
 (0)