[GRASS-SVN] r35470 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 17 15:16:54 EST 2009


Author: martinl
Date: 2009-01-17 15:16:54 -0500 (Sat, 17 Jan 2009)
New Revision: 35470

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py
Log:
wxGUI: fix vector map querying
       (merge from trunk, r35469)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py	2009-01-17 20:13:38 UTC (rev 35469)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py	2009-01-17 20:16:54 UTC (rev 35470)
@@ -3356,7 +3356,10 @@
         if ret:
             readAttrb = False
             for item in ret.splitlines():
-                key, value = item.split(':', 1)
+                try:
+                    key, value = item.split(':', 1)
+                except ValueError:
+                    continue
                 
                 if key == 'Layer' and readAttrb:
                     readAttrb = False
@@ -3364,6 +3367,7 @@
                 if readAttrb:
                     name, value = item.split(':', 1)
                     name = name.strip()
+                    value = value.strip()
                     # append value to the column
                     if len(value) < 1:
                         value = None



More information about the grass-commit mailing list