ci: merge main to release
This commit is contained in:
commit
3ea79c23fe
|
@ -308,7 +308,7 @@ class MiscTests(TestCase):
|
|||
build_file_urls(WgDraftFactory(rev=''))
|
||||
|
||||
urls, types = build_file_urls(WgDraftFactory(rev='23'))
|
||||
self.assertEqual(['xml', 'bibtex'], [t for t, _ in urls])
|
||||
self.assertEqual(['xml', 'bibtex', 'bibxml'], [t for t, _ in urls])
|
||||
self.assertEqual(types, ['xml'])
|
||||
|
||||
urls, types = build_file_urls(WgRfcFactory(rev=''))
|
||||
|
|
|
@ -1038,6 +1038,7 @@ def build_file_urls(doc: Union[Document, DocHistory]):
|
|||
file_urls.append(("htmlized", urlreverse('ietf.doc.views_doc.document_html', kwargs=dict(name=doc.name, rev=doc.rev))))
|
||||
file_urls.append(("pdfized", urlreverse('ietf.doc.views_doc.document_pdfized', kwargs=dict(name=doc.name, rev=doc.rev))))
|
||||
file_urls.append(("bibtex", urlreverse('ietf.doc.views_doc.document_bibtex',kwargs=dict(name=doc.name,rev=doc.rev))))
|
||||
file_urls.append(("bibxml", urlreverse('ietf.doc.views_doc.document_bibxml',kwargs=dict(name=doc.name,rev=doc.rev))))
|
||||
else:
|
||||
# As of 2022-12-14, there are 1463 Document and 3136 DocHistory records with type='draft' and rev=''.
|
||||
# All of these are in the rfc state and are covered by the above cases.
|
||||
|
|
|
@ -2967,7 +2967,7 @@
|
|||
"parent_types": [],
|
||||
"req_subm_approval": false,
|
||||
"role_order": "[\n \"chair\",\n \"member\"\n]",
|
||||
"session_purposes": "[\n \"officehourse\",\n \"regular\"\n]",
|
||||
"session_purposes": "[\n \"officehours\",\n \"regular\"\n]",
|
||||
"show_on_agenda": true
|
||||
},
|
||||
"model": "group.groupfeatures",
|
||||
|
|
|
@ -646,6 +646,7 @@ class SubmissionManualUploadForm(SubmissionBaseUploadForm):
|
|||
def clean_txt(self):
|
||||
txt_file = self._clean_file("txt", PlainParser)
|
||||
if txt_file is not None:
|
||||
txt_file.seek(0)
|
||||
bytes = txt_file.read()
|
||||
try:
|
||||
text = bytes.decode(self.file_info["txt"].charset)
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
href="{{ url }}">
|
||||
{% if label == 'pdf' or label == 'pdfized' %}
|
||||
<i class="bi bi-file-pdf"></i> pdf
|
||||
{% elif label == 'xml' or label == 'html' %}
|
||||
{% elif label == 'xml' or label == 'html' or label == 'bibxml' %}
|
||||
<i class="bi bi-file-code"></i> {{ label}}
|
||||
{% elif label == 'htmlized' %}
|
||||
<i class="bi bi-file-code"></i> htmlized
|
||||
|
|
Loading…
Reference in a new issue