Opened 14 years ago

Closed 14 years ago

#1249 closed defect (fixed)

unexpected error from the wxguy using "show attribute table" from the toolbar.

Reported by: met Owned by: martinl
Priority: normal Milestone: 6.4.1
Component: wxGUI Version: svn-releasebranch64
Keywords: attribute table manager Cc: met, grass-dev@…
CPU: x86-32 Platform: MSWindows XP


from GRASS GIS Layer Manager selecting "Show attribute table" from the toolbar, if database name contains ":" (like win/dos unit name) ,the program crashes. We now report an example with the command db.connect in which the cause of the error discussed shows itself.

db.connect -p driver:sqlite database:D:\GIS_db\websir\parma\settembre.db schema: group: v.db.connect -p map=settembre@parma Vector map <settembre@parma> is connected by: layer <2> table <NODES> in database <D:\GIS_db\websir\parma\settembre.db> through driver <sqlite> with key <cat> layer <1> table <LINKS> in database <D:\GIS_db\websir\parma\settembre.db> through driver <sqlite> with key <cat> "D:\GRASSS\GRASS-64-SVN\etc\wxpython\gui_modules\", line 2353, in init item, value = line.split(':') ValueError : too many values to unpack item, value = line.split(':')

command type "connect" contains 'driver:sqlite\ndatabase:D:\\GIS_db\\websir\\parma\\settembre.db\nschema:\ngroup:\n'

<type 'str'> and when line contains 'database:D:\\GIS_db\\websir\\parma\\settembre.db' line.split(':') restitutes 3 values instead of 2!! solution: in .\etc\wxpython\gui_modules\ line 2353 substitute item, value = line.split(':') with item, value = line.split(':',1)

Change History (2)

comment:1 by martinl, 14 years ago

Cc: grass-dev@… added
Keywords: attribute table manager added; phyton removed
Owner: changed from grass-dev@… to martinl
Status: newassigned

Fixed in r44687.

comment:2 by martinl, 14 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.