Add section for deliverables with no type

Deliverables which do not have any type were assumed to be
type:service deliverables and were listed with services,
resulting in a crowded and confusing output.

This patch makes sure they are listed in their own section.
It is still wrong for some of them (which should really have the
type:service tag), but less wrong than considering them all as
services.

Change-Id: I828b0fb245443cf5e3fb50c222da3f70c65a014b
This commit is contained in:
Thierry Carrez 2015-11-05 14:46:43 +01:00
parent be36966626
commit 46feb821ba

View File

@ -59,7 +59,7 @@ def _get_deliverable_type(deliverable_types, name):
no_dashes = name.replace('-', '_')
if no_dashes in deliverable_types:
return deliverable_types[no_dashes]
return 'type:service'
return 'type:other'
class DeliverableDirective(rst.Directive):
@ -71,6 +71,7 @@ class DeliverableDirective(rst.Directive):
_TYPE_ORDER = [
'type:service',
'type:library',
'type:other',
]
def run(self):
@ -133,6 +134,7 @@ class DeliverableDirective(rst.Directive):
_TYPE_TITLE = {
'type:service': 'Service Projects',
'type:library': 'Library Projects',
'type:other': 'Other Projects',
}
@staticmethod