[GRASS-SVN] r36420 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Mar 19 07:48:57 EDT 2009
Author: martinl
Date: 2009-03-19 07:48:57 -0400 (Thu, 19 Mar 2009)
New Revision: 36420
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py
Log:
wxGUI: disable casting values for all platforms
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py 2009-03-19 09:37:27 UTC (rev 36419)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py 2009-03-19 11:48:57 UTC (rev 36420)
@@ -31,7 +31,6 @@
import sys
import os
-import platform
import locale
import tempfile
import copy
@@ -251,16 +250,15 @@
j = 0
for value in record.split('|'):
- # casting ...
if self.columns[columns[j]]['ctype'] != type(''):
try:
- if platform.system() == "Darwin":
- self.itemDataMap[i].append(value)
- else:
- self.itemDataMap[i].append(self.columns[columns[j]]['ctype'](value))
+ ### casting disabled (2009/03)
+ ### self.itemDataMap[i].append(self.columns[columns[j]]['ctype'](value))
+ self.itemDataMap[i].append(value)
except ValueError:
- self.itemDataMap[i].append('')
+ self.itemDataMap[i].append(_('Unknown value'))
else:
+ # encode string values
try:
self.itemDataMap[i].append(unicodeValue(value))
except UnicodeDecodeError:
More information about the grass-commit
mailing list