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 |
Description
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\dbm.py", 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\dbm.py line 2353 substitute item, value = line.split(':') with item, value = line.split(':',1)
Change History (2)
comment:1 by , 14 years ago
Cc: | added |
---|---|
Keywords: | attribute table manager added; phyton removed |
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in r44687.