[GRASS-SVN] r31262 - in
grass/branches/releasebranch_6_3/gui/wxpython: . gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon May 5 16:38:44 EDT 2008
Author: martinl
Date: 2008-05-05 16:38:44 -0400 (Mon, 05 May 2008)
New Revision: 31262
Modified:
grass/branches/releasebranch_6_3/gui/wxpython/gui_modules/menuform.py
grass/branches/releasebranch_6_3/gui/wxpython/wxgui.py
Log:
wxGUI: loading/saving workspace fix (too many values to unpack) [merged from develbr6]
Modified: grass/branches/releasebranch_6_3/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/releasebranch_6_3/gui/wxpython/gui_modules/menuform.py 2008-05-05 20:34:12 UTC (rev 31261)
+++ grass/branches/releasebranch_6_3/gui/wxpython/gui_modules/menuform.py 2008-05-05 20:38:44 UTC (rev 31262)
@@ -1395,7 +1395,7 @@
cmd_validated.append(option)
else: # parameter
try:
- key, value = option.split('=')
+ key, value = option.split('=', 1)
except:
if i == 0: # add key name of first parameter if not given
key = self.grass_task.firstParam
Modified: grass/branches/releasebranch_6_3/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/releasebranch_6_3/gui/wxpython/wxgui.py 2008-05-05 20:34:12 UTC (rev 31261)
+++ grass/branches/releasebranch_6_3/gui/wxpython/wxgui.py 2008-05-05 20:38:44 UTC (rev 31262)
@@ -726,7 +726,7 @@
file.write('%s<flag name="%s" />\n' %
(' ' * self.indent, option[1]))
else: # parameter
- key, value = option.split('=')
+ key, value = option.split('=', 1)
file.write('%s<parameter name="%s">\n' %
(' ' * self.indent, key))
self.indent += 4
More information about the grass-commit
mailing list