geonode.resource.utils
Attributes
Classes
Object needed to handle the keywords coming from the XML |
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
Used to fill any additional fields after the save. |
Module Contents
- class geonode.resource.utils.KeywordHandler(instance, keywords)[source]
Object needed to handle the keywords coming from the XML The expected input are:
instance (Dataset/Document/Map): instance of any object inherited from ResourceBase.
keywords (list(dict)): Is required to analyze the keywords to find if some thesaurus is available.
- set_keywords()[source]
Method with the responsible to set the keywords (free and thesaurus) to the object. At return there is always a call to final_step to let it hookable.
- geonode.resource.utils.update_resource(instance: geonode.base.models.ResourceBase, xml_file: str = None, regions: list = [], keywords: list = [], vals: dict = {}, extra_metadata: list = [])[source]