planetfederal / qgis-suite-plugin

GNU General Public License v2.0
25 stars 17 forks source link

After draggin a postgis table into the QGIS canvas, operations on the database do not work #82

Closed volaya closed 10 years ago

volaya commented 10 years ago

For instance, trying to refresh the connection, you get

An error has occured while executing Python code:

Traceback (most recent call last): File "C:\Users\Volaya/.qgis2/python/plugins\opengeo\gui\explorertree.py", line 107, in refreshAction.triggered.connect(lambda: self.selectedItem.refreshContent(self.explorer)) File "C:\Users\Volaya/.qgis2/python/plugins\opengeo\gui\pgexploreritems.py", line 81, in refreshContent self.populate() File "C:\Users\Volaya/.qgis2/python/plugins\opengeo\gui\pgexploreritems.py", line 96, in populate schemas = self.element.schemas() File "C:\Users\Volaya/.qgis2/python/plugins\opengeo\postgis\connection.py", line 24, in schemas schemas = self.geodb.list_schemas() File "C:\Users\Volaya/.qgis2/python/plugins\opengeo\postgis\postgis_utils.py", line 182, in list_schemas c = self.con.cursor() AttributeError: GeoDB instance has no attribute 'con'

volaya commented 10 years ago

fixed in 3d5b66b89a0f29ad3e043aa6b87d0cbd608eb012