[GRASS-SVN] r36330 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 11 06:09:18 EDT 2009


Author: martinl
Date: 2009-03-11 06:09:18 -0400 (Wed, 11 Mar 2009)
New Revision: 36330

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py
Log:
clean r36317, don't use grass.run_command() - use gcmd.RunCommand() instead


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py	2009-03-11 10:00:01 UTC (rev 36329)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py	2009-03-11 10:09:18 UTC (rev 36330)
@@ -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