AIFDR/riab — Issue #181: Problem with shapefile sans .sld upload to geonode
Author: uniomni
Created: 2011-11-29 04:45:50+00:00
State: open
Labels: Third party components

Traceback (most recent call last):
File "/home/nielso/dev/riab_env/bin/risiko-upload", line 7, in
execfile(__file__)
File "/home/nielso/dev/riab/scripts/risiko-upload", line 34, in
check_metadata=True)
File "/home/nielso/dev/riab/impact/storage/io.py", line 1005, in save_to_geonode
ignore=ignore)
File "/home/nielso/dev/riab/impact/storage/io.py", line 852, in save_file_to_geonode
overwrite=overwrite)
File "/home/nielso/dev/geonode/src/GeoNodePy/geonode/maps/utils.py", line 571, in file_upload
new_layer = save(layer, filename, theuser, overwrite, workspace=workspace, keywords=keywords)
File "/home/nielso/dev/geonode/src/GeoNodePy/geonode/maps/utils.py", line 397, in save
sld = get_sld_for(publishing)
File "/home/nielso/dev/geonode/src/GeoNodePy/geonode/maps/gs_helpers.py", line 101, in get_sld_for
if layer.default_style is not None:
File "/home/nielso/dev/riab_env/src/gsconfig.py/src/geoserver/layer.py", line 89, in _get_default_style
name = self.dom.find("defaultStyle/name").text
AttributeError: 'NoneType' object has no attribute 'text'