Opened 12 years ago

Last modified 5 years ago

#1735 new defect

WXGUI attribute table manager doesn't meet with 1 normal form

Reported by: marisn Owned by: grass-dev@…
Priority: normal Milestone: 7.6.2
Component: wxGUI Version: svn-trunk
Keywords: Cc:
CPU: Unspecified Platform: Unspecified


WXGUI attribute table manager expects CAT column to be first one. (There's no left-to-right ordering to the columns.) If CAT is not the first column, zoom to feature functionality fails. Other functionality involving selected rows was not tested.

Traceback (most recent call last):
  File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
linux-gnu/etc/gui/wxpython/dbmgr/", line 1682, in

self._drawSelected(zoom = True)
  File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
linux-gnu/etc/gui/wxpython/dbmgr/", line 1554, in

cats = map(int, tlist.GetSelectedItems())
invalid literal for int() with base 10: '-0.358800000000002'

Here "-0.XXX' is value of a first column displayed in attribute manager. Database connection points to CAT column displayed as a second column.

Change History (10)

comment:1 by martinl, 12 years ago

Milestone: 6.4.4

comment:2 by neteler, 8 years ago


comment:3 by marisn, 7 years ago

It is still an issue with 7.2: #3291

comment:4 by mlennert, 7 years ago

AFAICT, the problem comes from the fact that both GetSelectedItems() and 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...

comment:5 by mlennert, 7 years ago


comment:6 by martinl, 7 years ago


comment:7 by neteler, 7 years ago


Ticket retargeted after milestone closed

comment:8 by martinl, 6 years ago

Milestone: 7.2.3

Ticket retargeted after milestone closed

comment:9 by martinl, 6 years ago

Milestone: 7.2.4

comment:10 by martinl, 5 years ago

Note: See TracTickets for help on using tickets.