Setting handler

Setting Handler

Module realize setting handler.

class luna_configurator.app.handlers.setting_handler.SettingHandler(request)[source]

Handler to work with exact setting.

async checkSettingDefault(settingId, inputTags)[source]

Check whether setting tags must/must not exist.

Parameters:
  • settingId – setting id

  • inputTags – tags from input json

Raises:

VLException(BadInputJson) if incorrect input tags

Return type:

None

async delete(settingId)[source]

Request to remove setting. See spec deleteSetting.

Return type:

HTTPResponse

async get(settingId)[source]

Request to get exact setting. See spec getSetting.

Return type:

HTTPResponse

async getUpdSettingSchema(settingName)[source]

Get validation schema for update setting :param settingName: setting name

Returns:

validation schema for update setting

Return type:

Callable[[dict], None]

async put(settingId)[source]

Request to rewrite setting. See spec replaceSetting.

Return type:

HTTPResponse