def _get_capa_types():
 capa_types = {tag: _get_human_name(registry.get_class_for_tag(tag)) for tag in registry.registered_tags()}
 return ([{'value': ANY_CAPA_TYPE_VALUE, 'display_name': _('Any Type')}] + sorted([{'value': capa_type, 'display_name': caption} for (capa_type, caption) in capa_types.items()], key=(lambda item: item.get('display_name'))))

def _get_capa_types ( ) : capa_types = { tag : _get_human_name ( registry . get_class_for_tag ( tag ) ) for tag in registry . registered_tags ( ) } return ( [ { 'value' : ANY_CAPA_TYPE_VALUE , 'display_name' : _ ( 'Any Type' ) } ] + sorted ( [ { 'value' : capa_type , 'display_name' : caption } for ( capa_type , caption ) in capa_types . items ( ) ] , key = ( lambda item : item . get ( 'display_name' ) ) ) )
gets capa types tags and labels .