Persons handler

class luna_backport3.app.handlers.persons_handler.PersonsHandler(request)[source]

Persons handler

async get()[source]

Get persons. See spec_get_persons.

Returns:

dict with person count and list with persons

Return type:

HTTPResponse

async post()[source]

Person creation. See spec_create_person.

Returns:

json with person id

Return type:

HTTPResponse

Person handler

class luna_backport3.app.handlers.person_handler.PersonHandler(request)[source]

Person handler

async delete(personId)[source]

Delete person. See spec_delete_person.

Raises:

RuntimeError if person removing failed

Return type:

HTTPResponse

async get(personId)[source]

Get person. See spec_get_person.

Returns:

dict with person count and list with persons

Return type:

HTTPResponse

async patch(personId)[source]

Patch person. See spec_patch_person.

Raises:

VLException(Error.PersonNotFound, 404, isCriticalError=False) if person not found

Return type:

HTTPResponse

Person descriptors handler

class luna_backport3.app.handlers.person_descriptors_handler.PersonDescriptorsHandler(request)[source]

Person descriptors handler

async get(personId)[source]

Get person descriptors. See spec_get_person_descriptors.

Return type:

HTTPResponse

async patch(personId)[source]

Patch person descriptors. See spec_patch_person_descriptors.

Raises:

VLException(Error.Backport3DescriptorNotFound, 400, isCriticalError=False) is descriptor not found

Return type:

HTTPResponse

Person lists handler

Person Lists Handler

Module realize Person Lists handler.

class luna_backport3.app.handlers.person_lists_handler.PersonListsHandler(request)[source]

Handler for resource /storage/persons/{person_id}/linked_lists.

async get(personId)[source]

Get person lists, see spec get person lists.

Return type:

HTTPResponse

async patch(personId)[source]

Change person lists, see spec patch person lists.

Raises:
  • VLException(Error.ListNotFound, 400, isCriticalError=False) if list not found

  • VLException(Error.WrongListType, 400, isCriticalError=False) if wrong list type

Return type:

HTTPResponse