beremiz

65ce8afe4b8f
Parents ae3e819252fc
Children df50e13a94d6
enable non-latin variable descriptions in CodeFileEditor

fix following backtrace:

UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-7: ordinal not in range(128)
Traceback (most recent call last):
File "beremiz/editors/CodeFileEditor.py", line 610, in GetValue
return str(self.data[row].get(self.GetColLabelValue(col, False), ""))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-7: ordinal not in range(128)
--- a/editors/CodeFileEditor.py Tue Jun 20 16:36:17 2017 +0300
+++ b/editors/CodeFileEditor.py Tue Jun 20 17:01:19 2017 +0300
@@ -607,7 +607,7 @@
if col == 0:
return row + 1
else:
- return str(self.data[row].get(self.GetColLabelValue(col, False), ""))
+ return unicode(self.data[row].get(self.GetColLabelValue(col, False), ""))
def _updateColAttrs(self, grid):
"""