[GRASS-SVN] r38783 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 19 02:55:02 EDT 2009


Author: hamish
Date: 2009-08-19 02:55:01 -0400 (Wed, 19 Aug 2009)
New Revision: 38783

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/sqlbuilder.py
Log:
split on fs=| to survive spaces in paths (trac #637)

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/sqlbuilder.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/sqlbuilder.py	2009-08-18 22:20:17 UTC (rev 38782)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/sqlbuilder.py	2009-08-19 06:55:01 UTC (rev 38783)
@@ -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