opengeo/mapstory — Issue #120: SLD file required for new layers
Author: dwins
Created: 2012-01-04 21:52:22+00:00
State: open

In dev mode, when I attempt to upload a layer without including an SLD in the list of files, I get the following error in my paster logs:

2012-01-04 15:40:42,412 ERROR [geonode.maps.views] Unexpected error during
upload.
Traceback (most recent call last):
File "/home/dwins/Projects/opengeo/geonode/src/GeoNodePy/geonode/maps/views.py", line 904, in upload_layer
return _uploader(request,saved_layer,form,base_file)
File "/home/dwins/Projects/opengeo/geonode/src/GeoNodePy/geonode/maps/views.py", line 933, in _uploader
request.session['import_sld_file'] = file.name
AttributeError: 'NoneType' object has no attribute 'name'