feat: алиасы item.* в цикле объектов КИИ под шаблон «Сведения» (ФСТЭК)
- item.objective→purpose, item.standard_name→typical_object, item.network_category→net_category, item.provider→net_operator, item.interaction_purpose→net_purpose, item.interaction_method→net_method, item.hardware→hw_sw, item.system_software→os_sw, item.defense_tools→defense_tools_list, item.component→subject_element, item.exploiting_org→subject_name, item.exploiting_inn→subject_inn, item.domain→domain_name, item.threat_actor→attacker_category, item.threat_justification→threats - логика: item.* — только переменные циклов
This commit is contained in:
@@ -328,6 +328,22 @@ def _build_loop_data(company: Company, is_list: List) -> Dict[str, List[Dict]]:
|
||||
'balance_value': getattr(isys, 'balance_value', '') or '—',
|
||||
'attacker_category': getattr(isys, 'attacker_category', '') or '—',
|
||||
'threats': getattr(isys, 'threats', '') or '—',
|
||||
# Алиасы под шаблон «Сведения о результатах категорирования» (ФСТЭК)
|
||||
'objective': getattr(isys, 'purpose', '') or '—',
|
||||
'standard_name': getattr(isys, 'typical_object', '') or '—',
|
||||
'network_category': getattr(isys, 'net_category', '') or '—',
|
||||
'provider': getattr(isys, 'net_operator', '') or '—',
|
||||
'interaction_purpose': getattr(isys, 'net_purpose', '') or '—',
|
||||
'interaction_method': getattr(isys, 'net_method', '') or '—',
|
||||
'hardware': getattr(isys, 'hw_sw', '') or '—',
|
||||
'system_software': getattr(isys, 'os_sw', '') or '—',
|
||||
'defense_tools': ', '.join(isys.defense_tools_list or []) or '—',
|
||||
'component': getattr(isys, 'subject_element', '') or '—',
|
||||
'exploiting_org': getattr(isys, 'subject_name', '') or '—',
|
||||
'exploiting_inn': getattr(isys, 'subject_inn', '') or '—',
|
||||
'domain': getattr(isys, 'domain_name', '') or '—',
|
||||
'threat_actor': getattr(isys, 'attacker_category', '') or '—',
|
||||
'threat_justification': getattr(isys, 'threats', '') or '—',
|
||||
'incidents': getattr(isys, 'incidents', '') or '—',
|
||||
'criteria_values': getattr(isys, 'criteria_values', '') or '—',
|
||||
'criteria_justification': getattr(isys, 'criteria_justification', '') or '—',
|
||||
|
||||
Reference in New Issue
Block a user