33from django .template import RequestContext
44
55from ietf .doc .models import *
6+ from ietf .doc .utils import get_tags_for_stream_id
67
78def state_help (request , type ):
89 slug , title = {
910 "draft-iesg" : ("draft-iesg" , "IESG States For Internet-Drafts" ),
1011 "draft-rfceditor" : ("draft-rfceditor" , "RFC Editor States For Internet-Drafts" ),
1112 "draft-iana-action" : ("draft-iana-action" , "IANA Action States For Internet-Drafts" ),
13+ "draft-stream-ietf" : ("draft-stream-ietf" , "IETF Stream States For Internet-Drafts" ),
1214 "charter" : ("charter" , "Charter States" ),
1315 "conflict-review" : ("conflrev" , "Conflict Review States" ),
1416 "status-change" : ("statchg" , "RFC Status Change States" ),
@@ -35,12 +37,14 @@ def state_help(request, type):
3537 states .insert (0 , fake_state )
3638
3739 tags = DocTagName .objects .filter (slug__in = IESG_SUBSTATE_TAGS )
40+ elif state_type .slug .startswith ("draft-stream-" ):
41+ possible = get_tags_for_stream_id (state_type .slug .replace ("draft-stream-" , "" ))
42+ tags = DocTagName .objects .filter (slug__in = possible )
3843
3944 return render_to_response ("doc/state_help.html" , {
4045 "title" : title ,
4146 "state_type" : state_type ,
4247 "states" : states ,
4348 "has_next_states" : has_next_states ,
4449 "tags" : tags ,
45- },
46- context_instance = RequestContext (request ))
50+ }, context_instance = RequestContext (request ))
0 commit comments