[GRASS-SVN] r53233 - in grass/branches/releasebranch_6_4/gui/wxpython: dbmgr gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Sep 19 05:59:23 PDT 2012
Author: annakrat
Date: 2012-09-19 05:59:23 -0700 (Wed, 19 Sep 2012)
New Revision: 53233
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/dbmgr/manager.py
grass/branches/releasebranch_6_4/gui/wxpython/gui_core/preferences.py
Log:
wxGUI/dbmgr: disable fs option in attribute manager for Windows until better solution is found
Modified: grass/branches/releasebranch_6_4/gui/wxpython/dbmgr/manager.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/dbmgr/manager.py 2012-09-19 12:57:04 UTC (rev 53232)
+++ grass/branches/releasebranch_6_4/gui/wxpython/dbmgr/manager.py 2012-09-19 12:59:23 UTC (rev 53233)
@@ -181,36 +181,27 @@
# TODO: more effective way should be implemented...
outFile = tempfile.NamedTemporaryFile(mode = 'w+b')
+ cmdParams = dict(quiet = True,
+ parent = self,
+ flags = 'c')
+ if sys.platform != "win32":
+ cmdParams.update(dict(fs = fs))
+
if sql:
+ cmdParams.update(dict(sql = sql,
+ output = outFile.name))
ret = RunCommand('db.select',
- quiet = True,
- parent = self,
- flags = 'c',
- fs = fs,
- sql = sql,
- output = outFile.name)
+ **cmdParams)
else:
+ cmdParams.update(dict(map = self.mapDBInfo.map,
+ layer = layer,
+ where = where,
+ stdout = outFile))
if columns:
- ret = RunCommand('v.db.select',
- quiet = True,
- parent = self,
- flags = 'c',
- map = self.mapDBInfo.map,
- layer = layer,
- columns = ','.join(columns),
- fs = fs,
- where = where,
- stdout = outFile)
- else:
- ret = RunCommand('v.db.select',
- quiet = True,
- parent = self,
- flags = 'c',
- map = self.mapDBInfo.map,
- layer = layer,
- fs = fs,
- where = where,
- stdout = outFile)
+ cmdParams.update(dict(columns = ','.join(columns)))
+
+ ret = RunCommand('v.db.select',
+ **cmdParams)
# These two should probably be passed to init more cleanly
# setting the numbers of items = number of elements in the dictionary
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_core/preferences.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_core/preferences.py 2012-09-19 12:57:04 UTC (rev 53232)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_core/preferences.py 2012-09-19 12:59:23 UTC (rev 53233)
@@ -1026,6 +1026,9 @@
flexSizer.Add(label, proportion = 0, flag = wx.ALIGN_CENTER_VERTICAL)
flexSizer.Add(separator, proportion = 0, flag = wx.ALIGN_RIGHT | wx.FIXED_MINSIZE)
+ if sys.platform == "win32":
+ label.Hide()
+ separator.Hide()
# ask on delete record
askOnDeleteRec = wx.CheckBox(parent = panel, id = wx.ID_ANY,
More information about the grass-commit
mailing list