Skip to content

Commit

Permalink
Changes to support Assets
Browse files Browse the repository at this point in the history
  • Loading branch information
etj committed Apr 24, 2024
1 parent 269ec25 commit 3256464
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM geonode/geonode-base:latest-ubuntu-22.04

RUN git clone https://github.com/GeoNode/geonode.git /usr/src/geonode
RUN cd /usr/src/geonode && git checkout 12124_assets && cd -
RUN mkdir -p /usr/src/importer

RUN cd ..
Expand Down
4 changes: 4 additions & 0 deletions importer/handlers/common/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,10 @@ def create_geonode_resource(
dirty_state=True,
title=layer_name,
owner=_exec.user,
extension=self.supported_file_extension_config["id"],
data_title="Original",
data_type=self.supported_file_extension_config["label"],
link_type="uploaded", # should be in geonode.base.enumerations.LINK_TYPES
files=list(
set(
list(_exec.input_params.get("files", {}).values())
Expand Down
4 changes: 4 additions & 0 deletions importer/handlers/common/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,10 @@ def create_geonode_resource(
dirty_state=True,
title=layer_name,
owner=_exec.user,
data_title="Original",
data_type=self.supported_file_extension_config["label"],
extension=self.supported_file_extension_config["id"],
link_type="uploaded", # should be in geonode.base.enumerations.LINK_TYPES
files=list(
set(
list(_exec.input_params.get("files", {}).values())
Expand Down

0 comments on commit 3256464

Please sign in to comment.