Skip to content

Commit bd6d077

Browse files
committed
Require posting confirmation for some particular draft name prefixes.
- Legacy-Id: 8591
1 parent b74d4e7 commit bd6d077

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

ietf/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ def skip_unreadable_post(record):
200200
'django.contrib.humanize',
201201
'django.contrib.messages',
202202
'south',
203+
'tastypie',
203204
'ietf.person',
204205
'ietf.name',
205206
'ietf.group',

ietf/submit/forms.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,21 @@ def deduce_group(self):
188188
except Group.DoesNotExist:
189189
raise forms.ValidationError('There is no active group with acronym \'%s\', please rename your draft' % components[2])
190190

191+
elif name.startswith("draft-rfc-"):
192+
return Group.objects.get(acronym="iesg")
193+
194+
elif name.startswith("draft-irtf-"):
195+
return Group.objects.get(acronym="irtf")
196+
191197
elif name.startswith("draft-iab-"):
192198
return Group.objects.get(acronym="iab")
193199

200+
elif name.startswith("draft-iana-"):
201+
return Group.objects.get(acronym="iana")
202+
203+
elif name.startswith("draft-rfc-editor-") or name.startswith("draft-rfced-") or name.startswith("draft-rfceditor-"):
204+
return Group.objects.get(acronym="rfceditor")
205+
194206
else:
195207
return None
196208

ietf/submit/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def submission_status(request, submission_id, access_token=None):
158158
except Preapproval.DoesNotExist:
159159
preapproval = None
160160

161-
requires_group_approval = submission.rev == '00' and submission.group and submission.group.type_id in ("wg", "rg") and not preapproval
161+
requires_group_approval = submission.rev == '00' and submission.group and submission.group.type_id in ("wg", "rg", "ietf", "irtf", "iab", "iana", "rfcedtyp") and not preapproval
162162

163163
requires_prev_authors_approval = Document.objects.filter(name=submission.name)
164164

0 commit comments

Comments
 (0)