[GRASS-SVN] r39586 - in grass/branches/develbranch_6/gui/wxpython:
. gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Oct 19 18:37:21 EDT 2009
Author: martinl
Date: 2009-10-19 18:37:19 -0400 (Mon, 19 Oct 2009)
New Revision: 39586
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py
grass/branches/develbranch_6/gui/wxpython/wxgui.py
Log:
wxGUI/dbm: fix encoding strings
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py 2009-10-19 21:31:44 UTC (rev 39585)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py 2009-10-19 22:37:19 UTC (rev 39586)
@@ -33,6 +33,7 @@
import locale
import tempfile
import copy
+import types
### i18N
import gettext
@@ -289,7 +290,7 @@
j = 0
for value in record.split('|'):
- if self.columns[columns[j]]['ctype'] != type(str):
+ if self.columns[columns[j]]['ctype'] != types.StringType:
try:
### casting disabled (2009/03)
### self.itemDataMap[i].append(self.columns[columns[j]]['ctype'](value))
Modified: grass/branches/develbranch_6/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/wxgui.py 2009-10-19 21:31:44 UTC (rev 39585)
+++ grass/branches/develbranch_6/gui/wxpython/wxgui.py 2009-10-19 22:37:19 UTC (rev 39586)
@@ -23,7 +23,6 @@
import os
import time
import traceback
-import types
import re
import string
import getopt
More information about the grass-commit
mailing list