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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 27 11:18:46 EDT 2011


Author: mmetz
Date: 2011-07-27 08:18:46 -0700 (Wed, 27 Jul 2011)
New Revision: 47276

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/sqlbuilder.py
Log:
sqlbuilder: fix get sample

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/sqlbuilder.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/sqlbuilder.py	2011-07-27 15:18:02 UTC (rev 47275)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/sqlbuilder.py	2011-07-27 15:18:46 UTC (rev 47276)
@@ -129,6 +129,7 @@
         if self.qtype.lower() == "select":
             self.text_sql.SetValue("SELECT * FROM %s" % self.tablename)
         self.text_sql.SetInsertionPointEnd()
+        self.text_sql.SetToolTipString(_("Example: %s") % "SELECT * FROM roadsmajor WHERE MULTILANE = 'no' OR OBJECTID < 10")
         wx.CallAfter(self.text_sql.SetFocus)
 
         #
@@ -301,7 +302,7 @@
                 self.list_values.Append(line.strip())
             else:
                 break
-            i += 0
+            i += 1
         
     def OnSampleValues(self, event):
         """!Get sample values"""



More information about the grass-commit mailing list