Skip to content

Commit f8b48f4

Browse files
larseggertrjsparks
andauthored
fix: use Internet-Draft more consistently across the UI (ietf-tools#5104)
* s/Internet Draft/Internet-Draft/i * s/draft/Internet-Draft/i or s/draft/I-D/i * s/ID/I-D/ * Fix tests * a -> an * Undo case-change to ASCII * Address code review comments * Add migrations * Add merged migration * fix: straighten out migrations * fix: finish straightening out migrations --------- Co-authored-by: Robert Sparks <rjsparks@nostrum.com>
1 parent 45e8f68 commit f8b48f4

90 files changed

Lines changed: 327 additions & 268 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

bin/daily

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $DTDIR/ietf/manage.py populate_yang_model_dirs -v0
4242
# Re-run yang checks on active documents
4343
$DTDIR/ietf/manage.py run_yang_model_checks -v0
4444

45-
# Expire internet drafts
45+
# Expire Internet-Drafts
4646
# Enable when removed from /a/www/ietf-datatracker/scripts/Cron-runner:
4747
$DTDIR/ietf/bin/expire-ids
4848

ietf/checks.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def check_id_submission_directories(app_configs, **kwargs):
114114
p = getattr(settings, s)
115115
if not os.path.exists(p):
116116
errors.append(checks.Critical(
117-
"A directory used by the ID submission tool does not\n"
117+
"A directory used by the I-D submission tool does not\n"
118118
"exist at the path given in the settings file. The setting is:\n"
119119
" %s = %s" % (s, p),
120120
hint = ("Please either update the local settings to point at the correct\n"
@@ -134,7 +134,7 @@ def check_id_submission_files(app_configs, **kwargs):
134134
p = getattr(settings, s)
135135
if not os.path.exists(p):
136136
errors.append(checks.Critical(
137-
"A file used by the ID submission tool does not exist\n"
137+
"A file used by the I-D submission tool does not exist\n"
138138
"at the path given in the settings file. The setting is:\n"
139139
" %s = %s" % (s, p),
140140
hint = ("Please either update the local settings to point at the correct\n"
@@ -179,7 +179,7 @@ def check_id_submission_checkers(app_configs, **kwargs):
179179
except Exception as e:
180180
errors.append(checks.Critical(
181181
"An exception was raised when trying to import the\n"
182-
"draft submission checker class '%s':\n %s" % (checker_path, e),
182+
"Internet-Draft submission checker class '%s':\n %s" % (checker_path, e),
183183
hint = "Please check that the class exists and can be imported.\n",
184184
id = "datatracker.E0008",
185185
))
@@ -188,15 +188,15 @@ def check_id_submission_checkers(app_configs, **kwargs):
188188
except Exception as e:
189189
errors.append(checks.Critical(
190190
"An exception was raised when trying to instantiate\n"
191-
"the draft submission checker class '%s':\n %s" % (checker_path, e),
191+
"the Internet-Draft submission checker class '%s':\n %s" % (checker_path, e),
192192
hint = "Please check that the class can be instantiated.\n",
193193
id = "datatracker.E0009",
194194
))
195195
continue
196196
for attr in ('name',):
197197
if not hasattr(checker, attr):
198198
errors.append(checks.Critical(
199-
"The draft submission checker\n '%s'\n"
199+
"The Internet-Draft submission checker\n '%s'\n"
200200
"has no attribute '%s', which is required" % (checker_path, attr),
201201
hint = "Please update the class.\n",
202202
id = "datatracker.E0010",
@@ -207,7 +207,7 @@ def check_id_submission_checkers(app_configs, **kwargs):
207207
break
208208
else:
209209
errors.append(checks.Critical(
210-
"The draft submission checker\n '%s'\n"
210+
"The Internet-Draft submission checker\n '%s'\n"
211211
" has no recognised checker method; "
212212
"should be one or more of %s." % (checker_path, checker_methods),
213213
hint = "Please update the class.\n",

ietf/community/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from ietf.person.fields import SearchablePersonField
1414

1515
class AddDocumentsForm(forms.Form):
16-
documents = SearchableDocumentsField(label="Add documents to track", doc_type="draft")
16+
documents = SearchableDocumentsField(label="Add Internet-Drafts to track", doc_type="draft")
1717

1818
class SearchRuleTypeForm(forms.Form):
1919
rule_type = forms.ChoiceField(choices=[('', '--------------')] + SearchRule.RULE_TYPES)

ietf/community/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ class CommunityList(models.Model):
1919

2020
def long_name(self):
2121
if self.user:
22-
return 'Personal ID list of %s' % self.user.username
22+
return 'Personal I-D list of %s' % self.user.username
2323
elif self.group:
24-
return 'ID list for %s' % self.group.name
24+
return 'I-D list for %s' % self.group.name
2525
else:
26-
return 'ID list'
26+
return 'I-D list'
2727

2828
def __str__(self):
2929
return self.long_name()

ietf/doc/expire.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright The IETF Trust 2010-2020, All Rights Reserved
22
# -*- coding: utf-8 -*-
3-
# expiry of Internet Drafts
3+
# expiry of Internet-Drafts
44

55

66
from django.conf import settings
@@ -179,7 +179,7 @@ def expire_draft(doc):
179179
doc.save_with_history(events)
180180

181181
def clean_up_draft_files():
182-
"""Move unidentified and old files out of the Internet Draft directory."""
182+
"""Move unidentified and old files out of the Internet-Draft directory."""
183183
cut_off = date_today(DEADLINE_TZINFO)
184184

185185
pattern = os.path.join(settings.INTERNET_DRAFT_PATH, "draft-*.*")

ietf/doc/forms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class AddDownrefForm(forms.Form):
140140
required=True)
141141
drafts = SearchableDocAliasesField(
142142
label="Internet-Drafts that makes the reference",
143-
help_text="The drafts that approve the downref in their Last Call",
143+
help_text="The Internet-Drafts that approve the downref in their Last Call",
144144
required=True)
145145

146146
def clean_rfc(self):
@@ -163,7 +163,7 @@ def clean_drafts(self):
163163
if not state or state.slug not in IESG_APPROVED_STATE_LIST:
164164
v_err_names.append(da.name)
165165
if v_err_names:
166-
raise forms.ValidationError("Draft is not yet approved: " + ", ".join(v_err_names))
166+
raise forms.ValidationError("Internet-Draft is not yet approved: " + ", ".join(v_err_names))
167167
return drafts
168168

169169
def clean(self):

ietf/doc/lastcall.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# helpers for handling last calls on Internet Drafts
1+
# helpers for handling last calls on Internet-Drafts
22

33
from django.db.models import Q
44

@@ -73,4 +73,4 @@ def expire_last_call(doc):
7373
if doc.type_id == 'draft':
7474
lc_text = doc.latest_event(LastCallDocEvent, type="sent_last_call").desc
7575
if "document makes the following downward references" in lc_text:
76-
email_last_call_expired_with_downref(doc, lc_text)
76+
email_last_call_expired_with_downref(doc, lc_text)

ietf/doc/mails.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def email_stream_changed(request, doc, old_stream, new_stream, text=""):
9898
text = strip_tags(text)
9999

100100
send_mail(request, to, None,
101-
"ID Tracker Stream Change Notice: %s" % doc.file_tag(),
101+
"I-D Tracker Stream Change Notice: %s" % doc.file_tag(),
102102
"doc/mail/stream_changed_email.txt",
103103
dict(text=text,
104104
url=settings.IDTRACKER_BASE_URL + doc.get_absolute_url()),
@@ -288,7 +288,7 @@ def generate_approval_mail_approved(request, doc):
288288
else:
289289
contacts = "The IESG contact person is %s." % responsible_directors[0]
290290

291-
doc_type = "RFC" if doc.get_state_slug() == "rfc" else "Internet Draft"
291+
doc_type = "RFC" if doc.get_state_slug() == "rfc" else "Internet-Draft"
292292

293293
addrs = gather_address_lists('ballot_approved_ietf_stream',doc=doc).as_strings()
294294
return render_to_string("doc/mail/approval_mail.txt",
@@ -308,7 +308,7 @@ def generate_approval_mail_rfc_editor(request, doc):
308308
# This is essentially dead code - it is only exercised if the IESG ballots on some other stream's document,
309309
# which does not happen now that we have conflict reviews.
310310
disapproved = doc.get_state_slug("draft-iesg") in DO_NOT_PUBLISH_IESG_STATES
311-
doc_type = "RFC" if doc.get_state_slug() == "rfc" else "Internet Draft"
311+
doc_type = "RFC" if doc.get_state_slug() == "rfc" else "Internet-Draft"
312312
addrs = gather_address_lists('ballot_approved_conflrev', doc=doc).as_strings()
313313

314314
return render_to_string("doc/mail/approval_mail_rfc_editor.txt",

ietf/doc/management/commands/generate_draft_bibxml_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
class Command(BaseCommand):
2323
help = ('Generate draft bibxml files for xml2rfc references, placing them in the '
2424
'directory configured in settings.BIBXML_BASE_PATH: %s. '
25-
'By default, generate files as needed for new draft revisions from the '
25+
'By default, generate files as needed for new Internet-Draft revisions from the '
2626
'last %s days.' % (settings.BIBXML_BASE_PATH, DEFAULT_DAYS))
2727

2828
def add_arguments(self, parser):

ietf/doc/templatetags/mail_filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def std_level_prompt(doc):
99
to the object's intended_std_level (with the word RFC appended in some
1010
cases), or a prompt requesting that the intended_std_level be set."""
1111

12-
prompt = "*** YOU MUST SELECT AN INTENDED STATUS FOR THIS DRAFT AND REGENERATE THIS TEXT ***"
12+
prompt = "*** YOU MUST SELECT AN INTENDED STATUS FOR THIS INTERNET-DRAFT AND REGENERATE THIS TEXT ***"
1313

1414
if doc.intended_std_level:
1515
prompt = doc.intended_std_level.name

0 commit comments

Comments
 (0)