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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 19 04:39:25 EDT 2009


Author: hamish
Date: 2009-08-19 04:39:25 -0400 (Wed, 19 Aug 2009)
New Revision: 38790

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/sqlbuilder.py
Log:
fix Verify (crudely)

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/sqlbuilder.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/sqlbuilder.py	2009-08-19 08:33:23 UTC (rev 38789)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/sqlbuilder.py	2009-08-19 08:39:25 UTC (rev 38790)
@@ -225,8 +225,8 @@
                               read = True,
                               flags = 'c',
                               table = self.tablename,
-			      database = self.database,
-			      driver = self.driver)
+                              database = self.database,
+                              driver = self.driver)
         
         for line in ret.splitlines():
             # skip ncols and nrows lines
@@ -320,7 +320,7 @@
                 pass
     def OnVerify(self,event):
         if self.text_sql.GetValue():
-            if os.system("""!db.select -t driver=%s database="%s" sql="SELECT * FROM %s WHERE %s" """ % \
+            if os.system("""db.select -t --verbose driver=%s database="%s" sql="SELECT * FROM %s WHERE %s" """ % \
                     (self.driver, self.database,self.tablename,
                         self.text_sql.GetValue().strip().replace("\n"," "))):
                 # FIXME: LOG



More information about the grass-commit mailing list