[GRASS-SVN] r34032 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Oct 27 19:02:51 EDT 2008
Author: martinl
Date: 2008-10-27 19:02:51 -0400 (Mon, 27 Oct 2008)
New Revision: 34032
Modified:
grass/trunk/gui/wxpython/gui_modules/dbm.py
Log:
wxGUI: fix attr (value containing delimiter ':')
(merge from devbr6, r34031)
Modified: grass/trunk/gui/wxpython/gui_modules/dbm.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/dbm.py 2008-10-27 22:59:19 UTC (rev 34031)
+++ grass/trunk/gui/wxpython/gui_modules/dbm.py 2008-10-27 23:02:51 UTC (rev 34032)
@@ -3227,13 +3227,13 @@
if len(item) < 1:
continue
- key, value = item.split(':')
+ key, value = item.split(':', 1)
if key == 'Layer' and readAttrb:
readAttrb = False
if readAttrb:
- name, value = item.split(':')
+ name, value = item.split(':', 1)
name = name.strip()
# append value to the column
if len(value) < 1:
More information about the grass-commit
mailing list