[GRASS-SVN] r40047 - grass/trunk/scripts/v.krige

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 18 10:17:56 EST 2009


Author: martinl
Date: 2009-12-18 10:17:56 -0500 (Fri, 18 Dec 2009)
New Revision: 40047

Modified:
   grass/trunk/scripts/v.krige/v.krige.py
Log:
v.krige: check overwrite preferences


Modified: grass/trunk/scripts/v.krige/v.krige.py
===================================================================
--- grass/trunk/scripts/v.krige/v.krige.py	2009-12-18 15:05:41 UTC (rev 40046)
+++ grass/trunk/scripts/v.krige/v.krige.py	2009-12-18 15:17:56 UTC (rev 40047)
@@ -116,6 +116,7 @@
 import gselect
 import goutput
 import menuform
+from preferences import globalSettings as UserSettings
 #import help
 
 import wx
@@ -369,7 +370,7 @@
         
         self.OverwriteCheckBox = wx.CheckBox(self, id = wx.ID_ANY,
                                              label = _("Allow output files to overwrite existing files"))
-        self.OverwriteCheckBox.SetValue(state = False)
+        self.OverwriteCheckBox.SetValue(UserSettings.Get(group='cmd', key='overwrite', subkey='enabled'))
         OutputParameters.Add(item = self.OverwriteCheckBox,
                              pos = (2, 0), span = (1, 2))
         



More information about the grass-commit mailing list