@@ -159,21 +159,28 @@ def get_doc_sectionREDESIGN(doc):
159159 s = s + "1"
160160 elif doc .type_id == 'charter' :
161161 s = get_wg_section (doc .group )
162+ elif doc .type_id == 'statchg' :
163+ protocol_action = False
164+ for relation in doc .relateddocument_set .filter (relationship__slug__in = ('tops' ,'tois' ,'tohist' ,'toinf' ,'tobcp' ,'toexp' )):
165+ if relation .relationship .slug in ('tops' ,'tois' ) or relation .target .document .std_level .slug in ('std' ,'ds' ,'ps' ):
166+ protocol_action = True
167+ if protocol_action :
168+ s = "23"
169+ else :
170+ s = "33"
171+ if doc .get_state_slug () not in ("iesgeval" , "defer" , "appr-pr" , "appr-pend" , "appr-sent" ):
172+ s = s + "3"
173+ elif doc .returning_item ():
174+ s = s + "2"
175+ else :
176+ s = s + "1"
162177 elif doc .type_id == 'conflrev' :
163178 if doc .get_state ('conflrev' ).slug not in ('adrev' ,'iesgeval' ,'appr-reqnopub-pend' ,'appr-reqnopub-sent' ,'appr-noprob-pend' ,'appr-noprob-sent' ,'defer' ):
164- s = "333 "
179+ s = "343 "
165180 elif doc .returning_item ():
166- s = "332 "
181+ s = "342 "
167182 else :
168- s = "331"
169- elif doc .type_id == 'statchg' :
170- # TODO This is WRONG
171- s = "211"
172- #protocol_action = False
173- #for relation in doc.relateddocument_set.filter(relationship__in="('tops','tois','tohist','toinf','tobcp,'toexp')"):
174- # if relation.relationship.slug in ('tops','tois') or relation.target.document.std_level.slug in ('std','ds','ps'):
175- # protocol_action = True
176- #if protocol_action:
183+ s = "341"
177184
178185 return s
179186
@@ -233,6 +240,8 @@ def agenda_docs(date, next_agenda):
233240 docmatches .sort (key = lambda d : d .balloting_started )
234241
235242 res = dict (("s%s%s%s" % (i , j , k ), []) for i in range (2 , 5 ) for j in range (1 , 4 ) for k in range (1 , 4 ))
243+ for k in range (1 ,4 ):
244+ res ['s34%d' % k ]= []
236245 for id in docmatches :
237246 section_key = "s" + get_doc_section (id )
238247 if section_key not in res :
@@ -287,16 +296,22 @@ def _agenda_json(request, date=None):
287296 data ['sections' ]['2.2' ] = {'title' :"Individual Submissions" }
288297 data ['sections' ]['2.2.1' ] = {'title' :"New Items" , 'docs' :[]}
289298 data ['sections' ]['2.2.2' ] = {'title' :"Returning Items" , 'docs' :[]}
299+ data ['sections' ]['2.3' ] = {'title' :"Individual Submissions" }
300+ data ['sections' ]['2.3.1' ] = {'title' :"New Items" , 'docs' :[]}
301+ data ['sections' ]['2.3.2' ] = {'title' :"Returning Items" , 'docs' :[]}
290302 data ['sections' ]['3' ] = {'title' :"Document Actions" }
291303 data ['sections' ]['3.1' ] = {'title' :"WG Submissions" }
292304 data ['sections' ]['3.1.1' ] = {'title' :"New Items" , 'docs' :[]}
293305 data ['sections' ]['3.1.2' ] = {'title' :"Returning Items" , 'docs' :[]}
294306 data ['sections' ]['3.2' ] = {'title' :"Individual Submissions Via AD" }
295307 data ['sections' ]['3.2.1' ] = {'title' :"New Items" , 'docs' :[]}
296308 data ['sections' ]['3.2.2' ] = {'title' :"Returning Items" , 'docs' :[]}
297- data ['sections' ]['3.3' ] = {'title' :"IRTF and Independent Submission Stream Documents " }
309+ data ['sections' ]['3.3' ] = {'title' :"Status Changes " }
298310 data ['sections' ]['3.3.1' ] = {'title' :"New Items" , 'docs' :[]}
299311 data ['sections' ]['3.3.2' ] = {'title' :"Returning Items" , 'docs' :[]}
312+ data ['sections' ]['3.4' ] = {'title' :"IRTF and Independent Submission Stream Documents" }
313+ data ['sections' ]['3.4.1' ] = {'title' :"New Items" , 'docs' :[]}
314+ data ['sections' ]['3.4.2' ] = {'title' :"Returning Items" , 'docs' :[]}
300315 data ['sections' ]['4' ] = {'title' :"Working Group Actions" }
301316 data ['sections' ]['4.1' ] = {'title' :"WG Creation" }
302317 data ['sections' ]['4.1.1' ] = {'title' :"Proposed for IETF Review" , 'wgs' :[]}
0 commit comments