[GRASS-dev] [GRASS GIS] #833: Preferences not saved

#833: Preferences not saved
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
With the new preferences location for GRASS 7, the .grasswx7 file is not
being saved. Trying to save generates an error. In fact, I'm not sure that
the new location is even being made. I'll see if I can find it but I want
to get this reported in case I run short on time.

Michael

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/833&gt;
GRASS GIS <http://grass.osgeo.org>

#833: Preferences not saved
--------------------------+-------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by cmbarton):

Additional info on this. The error raised is below. A really weird thing
is that it is somehow finding my source directory for GRASS 7 instead of
either my Home directory or the Directory it is run from
(/Applications/grass)[[BR]]
[[BR]]
Traceback (most recent call last):
   File "/Users/cmbarton/grass_dev/grass70_dev/dist.i386
-apple-darwin9.8.0/etc/wxpython/gui_modules/preferences.py",
line 1760, in OnSave

file = self.settings.SaveToFile()
   File "/Users/cmbarton/grass_dev/grass70_dev/dist.i386
-apple-darwin9.8.0/etc/wxpython/gui_modules/preferences.py",
line 678, in SaveToFile

raise gcmd.SettingsError(message=e)
gui_modules.gcmd
.
SettingsError

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/833#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#833: Preferences not saved
--------------------------+-------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: major | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by cmbarton):

  * status: new => closed
  * resolution: => fixed

Comment:

The problem was that if the new ~/.grass7 directory did not exist it would
cause an error. Fixed in r39935. If the directory does not exist, the
module tries to create it, raising an error if it is unable to do so.

Michael

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/833#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>