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 22, 2024
1 parent 269ec25 commit a526391
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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="original", # 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="original", # should be in geonode.base.enumerations.LINK_TYPES
files=list(
set(
list(_exec.input_params.get("files", {}).values())
Expand Down

0 comments on commit a526391

Please sign in to comment.