[GRASS-SVN] r55345 - grass/trunk/gui/wxpython/dbmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 13 01:46:56 PDT 2013


Author: annakrat
Date: 2013-03-13 01:46:55 -0700 (Wed, 13 Mar 2013)
New Revision: 55345

Modified:
   grass/trunk/gui/wxpython/dbmgr/base.py
Log:
wxGUI/dbmgr: fix editing table records

Modified: grass/trunk/gui/wxpython/dbmgr/base.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/base.py	2013-03-13 08:29:45 UTC (rev 55344)
+++ grass/trunk/gui/wxpython/dbmgr/base.py	2013-03-13 08:46:55 UTC (rev 55345)
@@ -1301,10 +1301,10 @@
                                 idx = i
                             
                             if column['ctype'] != types.StringType:
-                                tlist.itemDataMap[item][idx] = column['ctype'] (value)
+                                tlist.itemDataMap[item][idx] = column['ctype'] (values[i])
                             else: # -> string
                                 tlist.itemDataMap[item][idx] = values[i]
-                        except:
+                        except ValueError:
                             raise ValueError(_("Value '%(value)s' needs to be entered as %(type)s.") % \
                                                  {'value' : str(values[i]),
                                                   'type' : column['type']})



More information about the grass-commit mailing list