geonode.documents.utils

Utilities for managing GeoNode documents

Attributes

logger

Functions

delete_orphaned_document_files()

Deletes orphaned files of deleted documents.

get_download_response(request, docid[, attachment])

Returns a download response if user has access to download the document of a given id, and an http response if they have no permissions to download it.

Module Contents

geonode.documents.utils.logger[source]
geonode.documents.utils.delete_orphaned_document_files()[source]

Deletes orphaned files of deleted documents.

geonode.documents.utils.get_download_response(request, docid, attachment=False)[source]

Returns a download response if user has access to download the document of a given id, and an http response if they have no permissions to download it.