Files
aufbau2csv/idoit_scaleup/cat_application.py
Sven Riwoldt e06c448a46 Idoit-Tests 01
2024-12-15 14:38:48 +01:00

43 lines
1.4 KiB
Python
Executable File

from .consts import C__CATG__APPLICATION
from .category import IDoitCategory
from copy import deepcopy
class IDoitApplication(IDoitCategory):
CATEGORY = C__CATG__APPLICATION
def __init__(self, cfg):
super().__init__(cfg, self.CATEGORY)
# FIXME Skip, must be implemented later
def convert_field_with_name_assigned_license(self, data):
return 0
# FIXME Skip, must be implemented later
def convert_field_with_name_assigned_database_schema(self, data):
return 0
# FIXME Skip, must be implemented later
def convert_field_with_name_assigned_it_service(self, data):
return 0
def convert_field_with_name_assigned_version(self, data):
return int(data['assigned_version']['ref_id'])
def convert_field_with_name_bequest_nagios_services(self, data):
return int(data['bequest_nagios_services']['value'])
# def fix_obj(self, cdata):
# if ('assigned_version' in cdata.keys()) and (cdata['assigned_version'] is not None):
# cdata['assigned_version'] = str(cdata['assigned_version'])
# def save_category(self, objId, data):
# cdata = deepcopy(data)
# self.fix_obj(cdata)
# return super().save_category(objId, cdata)
# def update_category(self, objId, data):
# cdata = deepcopy(data)
# self.fix_obj(cdata)
# return super().update_category(objId, cdata)