[GRASS-SVN] r36332 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Mar 11 06:26:35 EDT 2009
Author: martinl
Date: 2009-03-11 06:26:35 -0400 (Wed, 11 Mar 2009)
New Revision: 36332
Modified:
grass/trunk/gui/wxpython/gui_modules/location_wizard.py
Log:
clean r36317, don't use grass.run_command() - use gcmd.RunCommand()
instead
Modified: grass/trunk/gui/wxpython/gui_modules/location_wizard.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/location_wizard.py 2009-03-11 10:16:33 UTC (rev 36331)
+++ grass/trunk/gui/wxpython/gui_modules/location_wizard.py 2009-03-11 10:26:35 UTC (rev 36332)
@@ -1861,12 +1861,19 @@
os.mkdir(database)
# change to new GISDbase directory
- grass.run_command('g.gisenv', set='GISDBASE=%s' % database)
+ gcmd.RunCommand('g.gisenv',
+ parent = self.wizard,
+ set='GISDBASE=%s' % database)
+
wx.MessageBox(parent=self.wizard,
- message=_("You will need to change the default GIS data directory in the GRASS startup screen"),
- caption=("Location <%s> will be created in GIS data directory <%s>") % \
- (location,database), style=wx.OK | wx.ICON_ERROR)
-
+ message=_("Location <%(loc)s> will be created "
+ "in GIS data directory <%(dir)s>."
+ "You will need to change the default GIS "
+ "data directory in the GRASS startup screen.") % \
+ { 'loc' : location, 'dir' : database},
+ caption=_("New GIS data directory"),
+ style=wx.OK | wx.ICON_INFORMATION | wx.CENTRE)
+
if coordsys == "xy":
success = self.XYCreate()
elif coordsys == "latlong":
More information about the grass-commit
mailing list