Skip to content

Commit

Permalink
- simplify the PR changes and get rid of UPDATE_THUMBS_ON_STYLE_CHAN…
Browse files Browse the repository at this point in the history
…GE additional setting
  • Loading branch information
afabiani committed May 28, 2019
1 parent 5a5a29a commit 0652330
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions docs/tutorials/advanced/geonode_settings/settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -855,13 +855,6 @@ MISSING_THUMBNAIL

TBD

UPDATE_THUMBS_ON_STYLE_CHANGE
-----------------------------

Default: ``True``

Layer's thumbnail is updated for each style changes if this option is True.

MODIFY_TOPICCATEGORY
--------------------

Expand Down
6 changes: 0 additions & 6 deletions geonode/geoserver/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,12 +550,6 @@ def _response_callback(**kwargs):
status = kwargs['status']
content_type = kwargs['content_type']

# update thumbnails
if settings.UPDATE_THUMBS_ON_STYLE_CHANGES:
if status == 200 and affected_layers:
for layer in affected_layers:
layer.save()

# Replace Proxy URL
if content_type in ('application/xml', 'text/xml', 'text/plain', 'application/json', 'text/json'):
_gn_proxy_url = urljoin(settings.SITEURL, '/gs/')
Expand Down
1 change: 0 additions & 1 deletion geonode/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,6 @@
# Choose thumbnail generator -- this is the default generator
THUMBNAIL_GENERATOR = "geonode.layers.utils.create_gs_thumbnail_geonode"
THUMBNAIL_GENERATOR_DEFAULT_BG = r"http://a.tile.openstreetmap.org/{z}/{x}/{y}.png"
UPDATE_THUMBS_ON_STYLE_CHANGES = True

GEOTIFF_IO_ENABLED = ast.literal_eval(
os.getenv('GEOTIFF_IO_ENABLED', 'False')
Expand Down

0 comments on commit 0652330

Please sign in to comment.