Opened 12 years ago
Last modified 6 years ago
#1735 new defect
WXGUI attribute table manager doesn't meet with 1 normal form
Reported by: | marisn | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.6.2 |
Component: | wxGUI | Version: | svn-trunk |
Keywords: | Cc: | ||
CPU: | Unspecified | Platform: | Unspecified |
Description
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/base.py", line 1682, in OnDataDrawSelectedZoom self._drawSelected(zoom = True) File "/home/maris/soft/grass_trunk/dist.x86_64-unknown- linux-gnu/etc/gui/wxpython/dbmgr/base.py", line 1554, in _drawSelected cats = map(int, tlist.GetSelectedItems()) ValueError : 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 , 12 years ago
Milestone: | → 6.4.4 |
---|
comment:2 by , 9 years ago
Milestone: | 6.4.4 → 6.4.6 |
---|
comment:3 by , 8 years ago
comment:4 by , 8 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 , 8 years ago
Milestone: | 6.4.6 → 7.2.1 |
---|
comment:6 by , 8 years ago
Milestone: | 7.2.1 → 7.2.2 |
---|
comment:9 by , 7 years ago
Milestone: | → 7.2.4 |
---|
comment:10 by , 6 years ago
Milestone: | 7.2.4 → 7.6.2 |
---|
It is still an issue with 7.2: #3291