Opened 12 years ago

Closed 12 years ago

#723 closed defect (fixed)

wxGui sqlbuilder: can't launch it

Reported by: hamish Owned by: grass-dev@…
Priority: major Milestone: 6.5.0
Component: wxGUI Version: svn-trunk
Keywords: sqlbuilder Cc:
CPU: x86-64 Platform: Linux



currently I can't get into the wxGUI attribute table SQLBrowser window.

  • start wxgui mapset: user1 loc=spearfish
  • add vector map (fields@PERM)
  • click show attribute table (right most icon on toolbar)
  • select Advanced radio button
  • click on the [SQL Builder] button.

I get this error in the Command Output window:

.../etc/wxpython/gui_modules/", line
1893, in OnBuilder

__init__() got an unexpected keyword argument 'vectorName'

If I edit gui/wxpython/gui_modules/ as so:

Index: gui/wxpython/gui_modules/
--- gui/wxpython/gui_modules/     (revision 38790)
+++ gui/wxpython/gui_modules/     (working copy)
@@ -1888,9 +1888,9 @@
     def OnBuilder(self,event):
         """!SQL Builder button pressed"""
-        self.builder = sqlbuilder.SQLFrame(parent=self, id=wx.ID_ANY,
-                                           title=_("SQL Builder"),
-                                           vectorName=self.vectorName)
+        self.builder = sqlbuilder.SQLFrame(self, wx.ID_ANY,
+                                           _("SQL Builder"),
+                                           self.vectorName)
     def OnTextEnter(self, event):

I can then at least get into the sqlbrowser GUI.

I hesitate to apply that patch as it is just a shot in the dark and I'm not sure what the correct usage should be.

As Martin mentions in trac #261, the SQL Builder has some serious issues. It still does, but I've just fixed a bunch of bugs and now it is somewhat less broken than it was before.


  • clicking on Column, Operator, Value (get values first) doesn't add the new text at the end of the statement or at the cursor position. It just seems to go at the fifth char or so. ??
  • Clicking [Apply] doesn't send the string back to the Attribute Table Manager GUI. Instead you get an error on [Close]
  • How to add support for multi-layer tables?? (see layer from L584 in ?)


Change History (1)

comment:1 Changed 12 years ago by hamish

Resolution: fixed
Status: newclosed

done in 6.5svn and trunk (6.4 was ok). other issues moved into new bug #734.

Note: See TracTickets for help on using tickets.