[GRASS-SVN] r52835 - grass/trunk/gui/wxpython/dbmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 22 07:37:24 PDT 2012
Author: annakrat
Date: 2012-08-22 07:37:23 -0700 (Wed, 22 Aug 2012)
New Revision: 52835
Modified:
grass/trunk/gui/wxpython/dbmgr/vinfo.py
Log:
wxGUI/dbmgr: fix querying for areas (v.what returns no Id) again
Modified: grass/trunk/gui/wxpython/dbmgr/vinfo.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/vinfo.py 2012-08-22 14:07:17 UTC (rev 52834)
+++ grass/trunk/gui/wxpython/dbmgr/vinfo.py 2012-08-22 14:37:23 UTC (rev 52835)
@@ -124,8 +124,9 @@
continue
if key in ret:
ret[key].append(value)
- else:
- ret[key].append(None)
+ if 'Id' not in record.keys():
+ ret['Id'].append(None)
+
return ret
def SelectFromTable(self, layer, cols = '*', where = None):
More information about the grass-commit
mailing list