Opened 15 years ago
Closed 14 years ago
#1762 closed bug (fixed)
Table Manager: gives an error if the postgis table structure have been modified
Reported by: | lutra | Owned by: | borysiasty |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | Version 1.6.0 |
Component: | Python plugins and bindings | Version: | Trunk |
Keywords: | Cc: | pcav | |
Must Fix for Release: | Yes | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
When I modify the table structure of a postgis layer, adding a column trough the Postgis Manager or with the "properties -> attributes" dialog, then when the Table Manager is clicked it gives
An error has occured while executing Python code:
Traceback (most recent call last):
File
"/home/gio/.qgispython/plugins/tablemanager/tableManager_plugin.py", line 63, in run
dialoga = tableManager_gui.TableManager(self.iface)
File
"/home/gio/.qgispython/plugins/tablemanager/tableManager_gui.py", line 174, in init
self.drawFieldsTable()
File
"/home/gio/.qgispython/plugins/tablemanager/tableManager_gui.py", line 184, in drawFieldsTable
item = QTableWidgetItem(fields[i].name())
KeyError: 8
Python version: 2.6.2 (release26-maint, Apr 19 2009, 02:11:59) [GCC 4.3.3]
Python path:['/usr/local/share/qgis/python', '/home/gio/.qgispython/plugins', '/usr/local/share/qgis/python/plugins', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/var/lib/python-support/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/var/lib/python-support/python2.6/gtk-2.0', '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode', '/usr/local/lib/python2.6/dist-packages', '/usr/local/share/qgis/python/plugins/fTools/tools']
Qgis 1.2 rev. 11023 on Ubuntu 9.04
Change History (6)
comment:1 by , 15 years ago
Summary: | Table Manaher: gives an error if the postgis table structure have been modified → Table Manager: gives an error if the postgis table structure have been modified |
---|
comment:2 by , 15 years ago
Component: | C++ Plugins → Python plugins and bindings |
---|
comment:3 by , 15 years ago
Milestone: | Version 1.2.0 → Version 1.3.0 |
---|---|
Status: | new → assigned |
comment:4 by , 14 years ago
Platform: | Debian → All |
---|
comment:5 by , 14 years ago
Milestone: | Version 1.5.0 → Version 1.6.0 |
---|
comment:6 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Should work with v 0.1.11. Please reopen otherwise.
still true on the latest trunk version