Skip to content

Commit

Permalink
Fixing a couple of things broke when merging
Browse files Browse the repository at this point in the history
  • Loading branch information
capooti committed May 2, 2018
1 parent e0a1808 commit 4193970
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 2 additions & 3 deletions geonode/layers/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,8 @@ def write_files(self):
with open(path, 'wb') as writable:
for c in f.chunks():
writable.write(c)

absolute_base_file = os.path.join(tempdir,
self.cleaned_data["base_file"].name)
absolute_base_file = os.path.join(tempdir,
self.cleaned_data["base_file"].name)
return tempdir, absolute_base_file


Expand Down
3 changes: 3 additions & 0 deletions geonode/layers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ def file_upload(filename,
metadata_upload_form=False):
"""Saves a layer in GeoNode asking as little information as possible.
Only filename is required, user and title are optional.
:return: Uploaded layer
:rtype: Layer
"""
Expand Down Expand Up @@ -680,7 +681,9 @@ def upload(incoming, user=None, overwrite=False,
private=False, metadata_uploaded_preserve=False,
charset='UTF-8'):
"""Upload a directory of spatial data files to GeoNode
This function also verifies that each layer is in GeoServer.
Supported extensions are: .shp, .tif, .tar, .tar.gz, and .zip (of a shapefile).
It catches GeoNodeExceptions and gives a report per file
"""
Expand Down
2 changes: 1 addition & 1 deletion geonode/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
<li role="separator" class="divider"></li>
<li><a href="{% url "admin:index" %}">Admin</a></li>
{% if 'geonode.geoserver' in INSTALLED_APPS %}
<li><a href="{% url "proxy" %}?url={{ GEOSERVER_LOCAL_URL }}web">GeoServer</a></li>
<li><a href="{% url "proxy" %}?url={{ GEOSERVER_BASE_URL }}web">GeoServer</a></li>
{% endif %}
{% if user.is_superuser and USE_MONITORING %}
<li role="separator" class="divider"></li>
Expand Down

0 comments on commit 4193970

Please sign in to comment.