[GRASS-SVN] r42972 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Aug 2 17:14:01 EDT 2010
Author: martinl
Date: 2010-08-02 21:14:01 +0000 (Mon, 02 Aug 2010)
New Revision: 42972
Modified:
grass/trunk/gui/wxpython/gui_modules/render.py
Log:
wxGUI: fix calling gcmd.GError
Modified: grass/trunk/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/render.py 2010-08-02 20:55:47 UTC (rev 42971)
+++ grass/trunk/gui/wxpython/gui_modules/render.py 2010-08-02 21:14:01 UTC (rev 42972)
@@ -41,7 +41,6 @@
import globalvar
import utils
import gcmd
-from gcmd import GException
from debug import Debug as Debug
from preferences import globalSettings as UserSettings
@@ -623,7 +622,7 @@
message = _("Unable to get current geographic extent. "
"Force quiting wxGUI. Please run manually g.region to "
"fix the problem.")
- GError(message)
+ gcmd.GError(message)
return self.region
for reg in ret.splitlines():
@@ -1034,8 +1033,8 @@
layer.SetOpacity(kargs['opacity'])
if render and not layer.Render():
- raise GException(_("Unable to render map layer <%s>.") %
- (name))
+ raise gcmd.GException(_("Unable to render map layer <%s>.") %
+ (name))
return layer
@@ -1143,8 +1142,8 @@
self.overlays.append(overlay)
if l_render and command != '' and not overlay.Render():
- raise GException(_("Unable render overlay <%s>.") %
- (name))
+ raise gcmd.GException(_("Unable render overlay <%s>.") %
+ (name))
return self.overlays[-1]
@@ -1182,8 +1181,8 @@
overlay.SetOpacity(kargs['opacity'])
if render and command != [] and not overlay.Render():
- raise GException(_("Unable render overlay <%s>") %
- (name))
+ raise gcmd.GException(_("Unable render overlay <%s>") %
+ (name))
return overlay
More information about the grass-commit
mailing list