Lists handler

Module realize a handler for work with lists from luna-faces

class luna_admin.app.handlers.account_lists_handler.AccountListHandler(request)[source]

Luna-faces list handler.

async get(listId)[source]

Get list info. See spec_get_list_info.

Return type:

HTTPResponse

Returns:

response with list info

class luna_admin.app.handlers.account_lists_handler.AccountListsHandler(request)[source]

Handler for lists.

async get()[source]

Get lists with filters. See spec_get_lists.

Return type:

HTTPResponse

Returns:

response with list info

luna_admin.app.handlers.account_lists_handler.getViewOfList(lunaList, faceCount)[source]

Convert luna list from luna-faces to luna-admin view

Parameters:
  • lunaList (dict) – luna list from luna-faces

  • faceCount (int) – list face count

Return type:

dict

Returns:

new view