Detailed description |
|
Subject: TypeError when exporting selected records from tableview
Operating System: GNU/Linux
GREAT-ER version: CVS
SciParam version: CVS
wxPython version: 2.4.1.2
Python version: 2.2
Exporting a selection from tableview causes an exception
(at least for a joined table: join stretch results with a table loaded from file
(e.g. DBF), select all recs with CSim > 0.0, try to export:
An unhandled exception occurred:
zip argument #2 must support iteration
(please report to http://great-er.intevation.org/bugtracker.html)
Traceback (most recent call last):
File "/powerhome/frank/projects/greater2/thuban/Thuban/UI/tableview.py", line
593, in OnExportSel
self.doExport(True)
File "/powerhome/frank/projects/greater2/thuban/Thuban/UI/tableview.py", line
580, in doExport
table_to_csv(self.table, filename, records)
File "/powerhome/frank/projects/greater2/thuban/Thuban/Model/table.py", line
526, in table_to_csv
record = table.ReadRowAsDict(i)
File "/powerhome/frank/projects/greater2/thuban/Thuban/Model/transientdb.py",
line 211, in ReadRowAsDict
return dict(zip(self.orig_names, result))
TypeError: zip argument #2 must support iteration
---------------------------------------------
comment by frank
Can't reproduce this with the current GREAT-ER.
|
|