onadata.libs.mixins package

Submodules

onadata.libs.mixins.anonymous_user_mixin module

onadata.libs.mixins.anonymous_user_public_forms_mixin module

onadata.libs.mixins.authenticate_header_mixin module

onadata.libs.mixins.cache_control_mixin module

onadata.libs.mixins.etags_mixin module

class onadata.libs.mixins.etags_mixin.ETagsMixin

Bases: object

Applies the Etag on GET responses with status code 200, 201, 202

self.etag_data - if it is set, the etag is calculated from this data,
otherwise the date_modifed of self.object or self.object_list is used.
finalize_response(request, response, *args, **kwargs)
set_etag_header(etag_value, etag_hash=None)

onadata.libs.mixins.labels_mixin module

onadata.libs.mixins.last_modified_mixin module

onadata.libs.mixins.multi_lookup_mixin module

onadata.libs.mixins.object_lookup_mixin module

onadata.libs.mixins.openrosa_headers_mixin module

onadata.libs.mixins.profiler_mixin module

onadata.libs.mixins.total_header_mixin module

class onadata.libs.mixins.total_header_mixin.TotalHeaderMixin

Bases: object

finalize_response(request, response, *args, **kwargs)
total_count = None

onadata.libs.mixins.xform_id_string_lookup module

Module contents