[GRASS-SVN] r72561 - grass/branches/releasebranch_7_4/gui/wxpython/dbmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 25 03:56:32 PDT 2018


Author: martinl
Date: 2018-03-25 03:56:32 -0700 (Sun, 25 Mar 2018)
New Revision: 72561

Modified:
   grass/branches/releasebranch_7_4/gui/wxpython/dbmgr/sqlbuilder.py
Log:
revert r72560

Modified: grass/branches/releasebranch_7_4/gui/wxpython/dbmgr/sqlbuilder.py
===================================================================
--- grass/branches/releasebranch_7_4/gui/wxpython/dbmgr/sqlbuilder.py	2018-03-25 10:44:39 UTC (rev 72560)
+++ grass/branches/releasebranch_7_4/gui/wxpython/dbmgr/sqlbuilder.py	2018-03-25 10:56:32 UTC (rev 72561)
@@ -369,17 +369,16 @@
             self.dbInfo.GetTable(self.layer))[column]
 
         i = 0
-        items = []
         for item in sorted(set(map(lambda x: desc['ctype'](x[0]), data))):
             if justsample and i > 255:
                 break
 
             if desc['type'] != 'character':
-                items.append(str(item))
+                item = str(item)
             else:
-                items.append(GetUnicodeValue(item))
+                item = GetUnicodeValue(item)
+            self.list_values.Append(item)
             i += 1
-        self.list_values.AppendItems(items)
 
     def OnSampleValues(self, event):
         """Get sample values"""



More information about the grass-commit mailing list