Skip to content

Commit 9ca4e98

Browse files
committed
assigned default consensus for IETF stream documents partly fixing ietf-tools#1403 - IRTF/IAB may want more, this just does IETF stream. Commit ready to merge. (even more:-)
- Legacy-Id: 11083
1 parent c93a310 commit 9ca4e98

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

ietf/doc/views_draft.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ def request_publication(request, name):
11471147
if not is_authorized_in_doc_stream(request.user, doc):
11481148
return HttpResponseForbidden("You do not have the necessary permissions to view this page")
11491149

1150-
# consensus_event = doc.latest_event(ConsensusDocEvent, type="changed_consensus")
1150+
consensus_event = doc.latest_event(ConsensusDocEvent, type="changed_consensus")
11511151

11521152
m = Message()
11531153
m.frm = request.user.person.formatted_email()
@@ -1213,13 +1213,17 @@ def request_publication(request, name):
12131213
form = PublicationForm(initial=dict(subject=subject,
12141214
body=body))
12151215

1216+
if doc.stream_id and doc.stream_id == "ietf":
1217+
cfi= True;
1218+
else:
1219+
cfi= (consensus_event != None) and (consensus_event.consensus != None) ;
1220+
12161221
return render_to_response('doc/draft/request_publication.html',
12171222
dict(form=form,
12181223
doc=doc,
12191224
message=m,
12201225
next_state=next_state,
1221-
# consensus_filled_in= ( (consensus_event != None) and (consensus_event.consensus != None) ),
1222-
consensus_filled_in= ( True )
1226+
consensus_filled_in=(cfi),
12231227
),
12241228
context_instance = RequestContext(request))
12251229

0 commit comments

Comments
 (0)