Merge "Display abandoned deliverables in separate section"
This commit is contained in:
@@ -70,6 +70,8 @@ def _get_category(deliv):
|
|||||||
model = deliv.model
|
model = deliv.model
|
||||||
if model == 'cycle-trailing':
|
if model == 'cycle-trailing':
|
||||||
return 'cycle-trailing'
|
return 'cycle-trailing'
|
||||||
|
if model == 'abandoned':
|
||||||
|
return 'abandoned'
|
||||||
return deliv.type
|
return deliv.type
|
||||||
|
|
||||||
|
|
||||||
@@ -103,6 +105,7 @@ class DeliverableDirectiveBase(rst.Directive):
|
|||||||
'other',
|
'other',
|
||||||
'cycle-trailing',
|
'cycle-trailing',
|
||||||
'tempest-plugin',
|
'tempest-plugin',
|
||||||
|
'abandoned',
|
||||||
]
|
]
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
@@ -195,6 +198,7 @@ class DeliverableDirectiveBase(rst.Directive):
|
|||||||
'other': 'Other Projects',
|
'other': 'Other Projects',
|
||||||
'cycle-trailing': 'Deployment and Packaging Tools',
|
'cycle-trailing': 'Deployment and Packaging Tools',
|
||||||
'tempest-plugin': 'Tempest Plugins',
|
'tempest-plugin': 'Tempest Plugins',
|
||||||
|
'abandoned': 'End-of-life deliverables',
|
||||||
}
|
}
|
||||||
|
|
||||||
def _add_deliverables(self, type_tag, deliverables, series, result):
|
def _add_deliverables(self, type_tag, deliverables, series, result):
|
||||||
@@ -289,6 +293,8 @@ class DeliverableDirectiveBase(rst.Directive):
|
|||||||
text = str(text) # version numbers might be seen as floats
|
text = str(text) # version numbers might be seen as floats
|
||||||
if self.team_name:
|
if self.team_name:
|
||||||
_add('.. _team-%s-%s:' % (series, text))
|
_add('.. _team-%s-%s:' % (series, text))
|
||||||
|
if deliv.model == 'abandoned':
|
||||||
|
text = '%s (EOL)' % text
|
||||||
else:
|
else:
|
||||||
_add('.. _%s-%s:' % (series, text))
|
_add('.. _%s-%s:' % (series, text))
|
||||||
_add('')
|
_add('')
|
||||||
|
|||||||
@@ -602,6 +602,8 @@ class Deliverable(object):
|
|||||||
status = 'development'
|
status = 'development'
|
||||||
else:
|
else:
|
||||||
status = self.series_info.status
|
status = self.series_info.status
|
||||||
|
if self.model == 'abandoned':
|
||||||
|
status = 'end of life'
|
||||||
return status
|
return status
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user