bacnet/ede_files/template_ObjTypes.csv
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Tue, 28 Aug 2018 17:19:13 +0300
changeset 2299 8df93571af65
parent 2020 6dddf3070806
permissions -rw-r--r--
Avoid dictionary initialization during import in PouDialog

Because initialization happened before i18n setup, then it causes later
problems during creating new POU on non-English locales (Russian for example).

Traceback (most recent call last):
File "/home/developer/WorkData/PLC/beremiz/beremiz/IDEFrame.py", line 2332, in OnAddPouMenu
dialog = PouDialog(self, pou_type, type_readonly)
File "/home/developer/WorkData/PLC/beremiz/beremiz/dialogs/PouDialog.py", line 101, in __init__
self.RefreshLanguage()
File "/home/developer/WorkData/PLC/beremiz/beremiz/dialogs/PouDialog.py", line 154, in RefreshLanguage
if language != "SFC" or PouDialog.POU_TYPES_DICT[self.PouType.GetStringSelection()] != "function":
KeyError: u'\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430'
#Encoding of BACnet Object Types;;;
#Code;Object Type;;
0;Analog Input;;
1;Analog Output;;
2;Analog Value;;
3;Binary Input ;;
4;Binary Output;;
5;Binary Value;;
6;Calendar;;
7;Command;;
8;Device;;
9;Event-Enrollment;;
10;File;;
11;Group;;
12;Loop;;
13;Multistate Input;;
14;Multistate Output
15;Notification Class
16;Program
17;Schedule
18;Averaging
19;Multistate Value
20;Trend Log
21;Life Safety Point
22;Life Safety Zone
23;Accumulator
24;Pulse Converter