planetfederal / qgis-suite-plugin

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

Adding GeoServer Catalog errors (but also works) #117

Open mweisman opened 10 years ago

mweisman commented 10 years ago

Adding a new GeoServer Catalog on CentOS 6 returns a warning: Could not connect to catalog: Traceback (most recent call last): File "/usr/share/qgis/python/plugins/opengeo/gui/gsexploreritems.py", line 256, in addGeoServerCatalog geoserverItem.populate() File "/usr/share/qgis/python/plugins/opengeo/gui/gsexploreritems.py", line 515, in populate self.gwcItem.populate() File "/usr/share/qgis/python/plugins/opengeo/gui/gwcexploreritems.py", line 24, in populate layers = self.element.layers() File "/usr/share/qgis/python/plugins/opengeo/geoserver/gwc.py", line 42, in layers layers.append(self.layer(els[0].text)) File "/usr/share/qgis/python/plugins/opengeo/geoserver/gwc.py", line 47, in layer layer.fetch() File "/usr/share/qgis/python/plugins/opengeo/geoserver/gwc.py", line 81, in fetch self.mimetypes = [mimetype.text for mimetype in xml.iter('string')] AttributeError: _ElementInterface instance has no attribute 'iter'

After dismissing the warning the catalog shows up in the OpenGeo Explorer and works just fine.

ischneider commented 10 years ago

My guess is that GWC related information will not be available for the catalog. This also will affect WPS after a quick grep through the code.

iter is a 2.7 method :(

mweisman commented 10 years ago

Probably not a big deal. Have yet to hit an actual issue despite the warning. CentOS is an oddball platform for desktop stuff anyways.