[GRASS-dev] [GRASS GIS] #1735: WXGUI attribute table manager doesn't meet with 1 normal form

GRASS GIS trac at osgeo.org
Mon Feb 20 05:00:36 PST 2017


#1735: WXGUI attribute table manager doesn't meet with 1 normal form
--------------------------+-------------------------
  Reporter:  marisn       |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  6.4.6
 Component:  wxGUI        |    Version:  svn-trunk
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+-------------------------

Comment (by mlennert):

 AFAICT, the problem comes from the fact that both
 [https://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/dbmgr/base.py#L390
 GetSelectedItems()] and
 [https://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/dbmgr/base.py#L400
 GetItems()] call GetItemText which in the wxpython < Phoenix returns the
 first column. In Phoenix it apparently takes an argument col= which allows
 to chose a specific column by index.

 Probably, the solution would be to rewrite GetSelectedItems and GetItems
 to get the entire data row and then select the relevant column...

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1735#comment:4>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list