[GRASS-SVN] r47277 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 27 11:19:01 EDT 2011


Author: mmetz
Date: 2011-07-27 08:19:01 -0700 (Wed, 27 Jul 2011)
New Revision: 47277

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

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/sqlbuilder.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/sqlbuilder.py	2011-07-27 15:18:46 UTC (rev 47276)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/sqlbuilder.py	2011-07-27 15:19:01 UTC (rev 47277)
@@ -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