backend.globaleaks.models.serializers

Module Contents

Functions

serialize_ifile(session, ifile) Transaction for serializing ifiles
serialize_rfile(session, rfile) Transaction for serializing rfile
serialize_wbfile(session, wbfile) Transaction for serializing wbfile
serialize_redirect(redirect) Transact for serializing a redirect
backend.globaleaks.models.serializers.serialize_ifile(session, ifile)[source]

Transaction for serializing ifiles

Parameters:
  • session – An ORM session
  • ifile – The ifile to be serialized
Returns:

The serialized ifile

backend.globaleaks.models.serializers.serialize_rfile(session, rfile)[source]

Transaction for serializing rfile

Parameters:
  • session – An ORM session
  • rfile – The rfile to be serialized
Returns:

The serialized rfile

backend.globaleaks.models.serializers.serialize_wbfile(session, wbfile)[source]

Transaction for serializing wbfile

Parameters:
  • session – An ORM session
  • wbfile – The wbfile to be serialized
Returns:

The serialized wbfile

backend.globaleaks.models.serializers.serialize_redirect(redirect)[source]

Transact for serializing a redirect

Parameters:redirect – The redirect to be serialized
Returns:The serialized redirect