aleph.views.util

aleph.views.util.get_best_next_url()

Returns the safest URL to redirect to from a given list.

aleph.views.util.get_collection(collection_id)
aleph.views.util.get_document(document_id)
aleph.views.util.get_entity(id, action)
aleph.views.util.get_index_document(document_id)
aleph.views.util.is_safe_url(target)

Check if the forward URL is on the same host as the site.

aleph.views.util.jsonify(obj)

Serialize to JSON and also dump from the given schema.

aleph.views.util.make_excel(result_iter, fields)
aleph.views.util.parse_request()

Get request form data or body and validate it against a schema.

aleph.views.util.require()

Check if a user is allowed a set of predicates.

aleph.views.util.validate_data(data, schema)

Validate the data inside a request against a schema.