[GRASS-SVN] r63953 - grass/branches/releasebranch_7_0/gui/wxpython/vnet
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jan 4 14:02:37 PST 2015
Author: turek
Date: 2015-01-04 14:02:37 -0800 (Sun, 04 Jan 2015)
New Revision: 63953
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/vnet/vnet_data.py
Log:
wx.vnet: fix of costs
Modified: grass/branches/releasebranch_7_0/gui/wxpython/vnet/vnet_data.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/vnet/vnet_data.py 2015-01-04 19:36:39 UTC (rev 63952)
+++ grass/branches/releasebranch_7_0/gui/wxpython/vnet/vnet_data.py 2015-01-04 22:02:37 UTC (rev 63953)
@@ -632,9 +632,10 @@
columnchoices = dbInfo.GetTableDesc(table)
except (KeyError, ValueError):
table = None
-
+
# check costs columns
for col in ["arc_column", "arc_backward_column", "node_column"]:
+
if col == "node_column":
try:
table = dbInfo.GetTable(int(params["node_layer"]))
@@ -646,7 +647,7 @@
invParams.append(col)
continue
- if not columnchoices[col].value['type'] not in ['integer', 'double precision']:
+ if columnchoices[params[col]]['type'] not in ['integer', 'double precision']:
invParams.append(col)
continue
More information about the grass-commit
mailing list