resource

resource.already_exists

  • Attribute: lsserver.core.localizations.keys.RESOURCE_ALREADY_EXISTS_ERROR
  • Fields: resource, id
  • Example Message: The %(resource)s resource with id %(id)s already exists.
  • Doc: The None resource with id None already exists.

resource.cancel_resource

  • Attribute: lsserver.core.localizations.keys.CANCEL_RESOURCE_ERROR
  • Fields: message, type
  • Example Message: Resource processing canceled. Type: ‘%(type)s’ Msg: ‘%(message)s’
  • Doc: Resource processing canceled. Type: ‘None’ Msg: ‘None’

resource.cancel_resource.gift_card_already_exists

  • Attribute: lsserver.core.localizations.keys.GIFT_CARD_ALREADY_EXISTS
  • Fields: serial
  • Example Message: gift card with this serial ‘%(serial)s’ already exists.
  • Doc: gift card with this serial ‘None’ already exists.

resource.cancel_resource.giftcard_payment_with_giftcard

  • Attribute: lsserver.core.localizations.keys.GIFTCARD_WITH_GIFTCARD
  • Fields: serial
  • Example Message: Can’t pay for a gift card, using that same gift card ‘%(serial)s’
  • Doc: Can’t pay for a gift card, using that same gift card ‘None’

resource.cancel_resource.incorrect_number_of_serials

  • Attribute: lsserver.core.localizations.keys.INCORRECT_NUMBER_OF_SERIALS
  • Fields: expected, actual, resource, id
  • Example Message: ‘%(resource)s:%(id)s’ has the wrong number of serials specified. Expected %(expected)s, actual %(actual)s
  • Doc: ‘None:None’ has the wrong number of serials specified. Expected None, actual None

resource.cancel_resource.incorrect_parameter

  • Attribute: lsserver.core.localizations.keys.INCORRECT_PARAMETER
  • Fields: resource, parameter, actual, id, expected
  • Example Message: ‘%(resource)s:%(id)s’ expected parameter ‘%(parameter)s’ to be ‘%(expected)s’ not ‘%(actual)s’
  • Doc: ‘None:None’ expected parameter ‘None’ to be ‘None’ not ‘None’

resource.cancel_resource.invalid_negative_payment

  • Attribute: lsserver.core.localizations.keys.INVALID_NEGATIVE_PAYMENT
  • Fields: request_type
  • Example Message: Cannot have a negative amount for ‘%(request_type)s’ payment
  • Doc: Cannot have a negative amount for ‘None’ payment

resource.cancel_resource.invalid_serial

  • Attribute: lsserver.core.localizations.keys.INVALID_SERIAL
  • Fields: serial, resource, id
  • Example Message: ‘%(resource)s:%(id)s’ has invalid serial number set %(serial)s
  • Doc: ‘None:None’ has invalid serial number set None

resource.cancel_resource.missing_parameter

  • Attribute: lsserver.core.localizations.keys.MISSING_PARAMETER
  • Fields: parameter, resource, id
  • Example Message: ‘%(resource)s:%(id)s’ requires parameter ‘%(parameter)s’
  • Doc: ‘None:None’ requires parameter ‘None’

resource.cancel_resource.resource_already_exists

  • Attribute: lsserver.core.localizations.keys.RESOURCE_ALREADY_EXISTS
  • Fields: resource, id
  • Example Message: ‘%(resource)s:%(id)s’ already exists.
  • Doc: ‘None:None’ already exists.

resource.cancel_resource.serial_already_allocated

  • Attribute: lsserver.core.localizations.keys.SERIAL_ALREADY_ALLOCATED
  • Fields: serial, resource, id
  • Example Message: ‘%(resource)s:%(id)s’ has a serial number ‘%(serial)s’ which has already been allocated
  • Doc: ‘None:None’ has a serial number ‘None’ which has already been allocated

resource.currency.missing_default_currency

  • Attribute: lsserver.core.localizations.keys.MISSING_DEFAULT_CURRENCY
  • Example Message: The default currency is missing.

resource.customer.cannot_lock_merged_customers

  • Attribute: lsserver.core.localizations.keys.CANNOT_LOCK_MERGED_CUSTOMERS
  • Example Message: Could not acquire all merged customer locks.

resource.customer.customer_already_merged

  • Attribute: lsserver.core.localizations.keys.CUSTOMER_ALREADY_MERGED
  • Example Message: The customer is already merged. Please use another customer.

resource.customer.missing_phone_id

  • Attribute: lsserver.core.localizations.keys.MISSING_PHONE_ID
  • Example Message: Phone id or list order must be provided.

resource.disallowed

  • Attribute: lsserver.core.localizations.keys.DISALLOWED_ERROR
  • Fields: message
  • Example Message: This operation is not allowed: %(message)s
  • Doc: This operation is not allowed: None

resource.insufficient_privileges

  • Attribute: lsserver.core.localizations.keys.INSUFFICIENT_PREVILEGES
  • Fields: privilege, message, authorization_required
  • Example Message: You do not have the required privileges (%(privilege)s): %(message)s
  • Doc: You do not have the required privileges (None): None

resource.invalid_xpath

  • Attribute: lsserver.core.localizations.keys.INVALID_XPATH
  • Fields: xpath
  • Example Message: The specified xpath statement ‘%(xpath)s’is invalid.
  • Doc: The specified xpath statement ‘None’is invalid.

resource.invoice.invoice_already_posted

  • Attribute: lsserver.core.localizations.keys.INVOICE_ALREADY_POSTED
  • Example Message: No modifications are allowed since the invoice has already been posted

resource.invoice.pole_display_change_not_allowed

  • Attribute: lsserver.core.localizations.keys.POLE_DISPLAY_CHANGE_NOT_ALLOWED
  • Example Message: Cannot change the pole display at this time.

resource.invoice.pole_display_still_attached

  • Attribute: lsserver.core.localizations.keys.POLE_DISPLAY_STILL_ATTACHED
  • Example Message: There is already a pole display attached to the invoice.

resource.not_attached

  • Attribute: lsserver.core.localizations.keys.NOT_ATTACHED
  • Fields: item_id, parent_id, parent_type, item_type
  • Example Message: %(item_type)s:%(item_id)s is not attached to %(parent_type)s:%(parent_id)s
  • Doc: None:None is not attached to None:None

resource.not_found

  • Attribute: lsserver.core.localizations.keys.RESOURCE_NOT_FOUND_ERROR
  • Fields: resource, id
  • Example Message: The %(resource)s resource with id %(id)s was not found. Please contact support.
  • Doc: The None resource with id None was not found. Please contact support.

resource.not_locked

  • Attribute: lscore.localizations.keys.NOT_LOCKED_ERROR
  • Fields: lock_name, item_id
  • Example Message: Acquire a lock on %(lock_name)s with id %(item_id)s first
  • Doc: Acquire a lock on None with id None first

resource.not_valid

  • Attribute: lsserver.core.localizations.keys.NOT_VALID_ERROR
  • Fields: expected, actual, resource
  • Example Message: The %(resource)s resource/parameter expected %(expected)s but received %(actual)s
  • Doc: The None resource/parameter expected None but received None

resource.not_your_lock

  • Attribute: lscore.localizations.keys.NOT_YOUR_LOCK_ERROR
  • Fields: lock_name, item_id, current_lock_holder
  • Example Message: %(lock_name)s is in use by %(current_lock_holder)s. You will not be able to make changes until %(current_lock_holder)s closes the document.
  • Doc: None is in use by None. You will not be able to make changes until None closes the document.

resource.order.delete_order_line_with_reserved_inventory

  • Attribute: lsserver.core.localizations.keys.DELETE_ORDER_LINE_WITH_RESERVED_INVENTORY
  • Example Message: Cannot delete order line with reserved inventory.

resource.order.invalid_order_line_status

  • Attribute: lsserver.core.localizations.keys.INVALID_ORDER_LINE_STATUS_UPDATE
  • Fields: new_status, current_status
  • Example Message: Cannot update order from [%(current_status)s] to [%(new_status)s]
  • Doc: Cannot update order from [None] to [None]

resource.order.invalid_quantity_reserved

  • Attribute: lsserver.core.localizations.keys.INVALID_QUANTITY_RESERVED
  • Example Message: The specified quantity to reserve is invalid.

resource.order.invalid_warehouse

  • Attribute: lsserver.core.localizations.keys.INVALID_WAREHOUSE
  • Example Message: The specified warehouses are invalid.

resource.order.invoiced_or_cancelled_order

  • Attribute: lsserver.core.localizations.keys.INVOICED_OR_CANCELLED_ORDER
  • Example Message: Cannot update an order that was already invoiced or cancelled.

resource.order.missing_customer_info

  • Attribute: lsserver.core.localizations.keys.MISSING_CUSTOMER_INFO
  • Example Message: Customer ID or Customer name not set.

resource.order.stock_order_customer_info_applied

  • Attribute: lsserver.core.localizations.keys.STOCK_ORDER_CUSTOMER_INFO_APPLIED
  • Example Message: Customer information cannot be set on Stock Orders.

resource.order.stock_order_reservation_error

  • Attribute: lsserver.core.localizations.keys.STOCK_ORDER_RESERVATION_ERROR
  • Example Message: Cannot reserve inventory for Stock Orders.

resource.payment.cannot_modify_external_payment

  • Attribute: lsserver.core.localizations.keys.CANNOT_MODIFY_EXTERNAL_PAYEMENT
  • Example Message: Cannot modify an externally processed payment once it has gone through

resource.tax_code.missing_default_tax_code

  • Attribute: lsserver.core.localizations.keys.MISSING_DEFAULT_TAX_CODE
  • Example Message: The default tax code is missing.

resource.tax_status.missing_default_tax_status

  • Attribute: lsserver.core.localizations.keys.MISSING_DEFAULT_TAX_STATUS
  • Example Message: The default tax status is missing.

resource.validation_error

  • Attribute: lscore.localizations.keys.VALIDATION_ERROR
  • Fields: error_message
  • Example Message: Unable to validate xml: %(error_message)s
  • Doc: Unable to validate xml: None

resource.validation_unexpected_data_error

  • Attribute: lscore.localizations.keys.VALIDATION_UNEXPECTED_DATA_ERROR
  • Fields: errors, element
  • Example Message: There was unexpected data with the <%(element)s> element which caused the validation to fail: %(errors)s
  • Doc: There was unexpected data with the <None> element which caused the validation to fail: None

resource.wrong_model

  • Attribute: lsserver.core.localizations.keys.WRONG_MODEL_ERROR
  • Fields: expected_model, actual_id, actual_model
  • Example Message: Incorrect model: ‘%(expected_model)s’ is not correct for ‘%(actual_model)s:%(actual_id)s’
  • Doc: Incorrect model: ‘None’ is not correct for ‘None:None’