[GRASS-SVN] r38784 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 19 02:57:25 EDT 2009
Author: hamish
Date: 2009-08-19 02:57:25 -0400 (Wed, 19 Aug 2009)
New Revision: 38784
Modified:
grass/trunk/gui/wxpython/gui_modules/sqlbuilder.py
Log:
split on fs=| to survive spaces in paths (trac #637; merge from devbr6)
Modified: grass/trunk/gui/wxpython/gui_modules/sqlbuilder.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/sqlbuilder.py 2009-08-19 06:55:01 UTC (rev 38783)
+++ grass/trunk/gui/wxpython/gui_modules/sqlbuilder.py 2009-08-19 06:57:25 UTC (rev 38784)
@@ -52,8 +52,8 @@
self.vectmap = self.vectmap + "@" + grass.gisenv()['MAPSET']
self.mapname, self.mapset = self.vectmap.split("@")
self.layer,self.tablename, self.column, self.database, self.driver =\
- os.popen("v.db.connect -g map=%s" %\
- (self.vectmap)).readlines()[0].strip().split()
+ os.popen("v.db.connect -g fs='|' map=%s" %\
+ (self.vectmap)).readlines()[0].strip().split("|")
self.qtype = qtype # type of the uqery: SELECT, UPDATE, DELETE, ...
self.column_names = [] # array with column names
More information about the grass-commit
mailing list