[GRASS-SVN] r30917 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Apr 9 14:23:39 EDT 2008
Author: martinl
Date: 2008-04-09 14:23:39 -0400 (Wed, 09 Apr 2008)
New Revision: 30917
Modified:
grass/trunk/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI (goutput): bugfix message format use first ':' to determine message type
Modified: grass/trunk/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/goutput.py 2008-04-09 16:39:21 UTC (rev 30916)
+++ grass/trunk/gui/wxpython/gui_modules/goutput.py 2008-04-09 18:23:39 UTC (rev 30917)
@@ -368,13 +368,13 @@
self.gmgauge.SetValue(0) # reset progress bar on '0%'
elif 'GRASS_INFO_MESSAGE' in line:
type = 'message'
- message += line.split(':')[1].strip()
+ message += line.split(':', 1)[1].strip()
elif 'GRASS_INFO_WARNING' in line:
type = 'warning'
- message += line.split(':')[1].strip()
+ message += line.split(':', 1)[1].strip()
elif 'GRASS_INFO_ERROR' in line:
type = 'error'
- message += line.split(':')[1].strip()
+ message += line.split(':', 1)[1].strip()
elif 'GRASS_INFO_END' in line:
message = ''
else:
More information about the grass-commit
mailing list