def get_detail_related(self): return { 'sysdevice_status_enum_list': base.get_related_column_enum('SysDevice', 'status'), 'sysdevice_assets_type_enum_list': base.get_related_column_enum('SysDevice', 'assets_type'), 'sysdevice_system_enum_list': base.get_related_column_enum('SysDevice', 'system'), 'itsystem_label_list': base.get_related_attr(ItSystem, 'label_cn'), 'zone_label_list': base.get_related_attr(Zone, 'label_cn'), 'room_label_list': base.get_related_attr(Room, 'label_cn'), }
def get_detail_related(self): return { 'zone_label_list': base.get_related_attr(Zone, 'label_cn'), 'itsystem_person_enum_list': base.get_related_column_enum('ItSystem', 'is_untrained_person_use'), }
def get_detail_related(self): return { 'itsystem_label_list': base.get_related_attr(ItSystem, 'label_cn'), 'sysdevice_label_list': base.get_related_attr(SysDevice, 'label_cn'), 'database_crole_enum_list': base.get_related_column_enum('Database', 'cluster_role'), }
def get_list_related(self): return { 'sysdevice_status_enum_list': base.get_related_column_enum('SysDevice', 'status'), 'sysdevice_assets_type_enum_list': base.get_related_column_enum('SysDevice', 'assets_type'), 'sysdevice_system_enum_list': base.get_related_column_enum('SysDevice', 'system'), 'sysdevice_zone_list': base.get_related_foreignkey_count(SysDevice, 'related_zone_id_id', Zone), 'sysdevice_itsystem_list': base.get_related_foreignkey_count(SysDevice, 'related_itsystem_id_id', ItSystem), 'sysdevice_system_list': base.get_related_column_count(SysDevice, 'system'), 'sysdevice_assets_type_list': base.get_related_column_count(SysDevice, 'assets_type') }