shop.globals

Global constants and settings for the viur-shop.

Attributes

SHOP_LOGGER

viur-shop base logger instance

SHOP_INSTANCE

The shop instance bound to the default html renderer

SHOP_INSTANCE_VI

The shop instance bound to the vi renderer

SENTINEL

Unique sentinel object used to detect if a value was explicitly set or not

DEBUG_DISCOUNTS

Print detailed discount evaluation for debugging

MAX_FETCH_LIMIT

Limit used if all entries should be fetched, but it needs to be limited because it's ViUR.

Module Contents

shop.globals.SHOP_LOGGER: logging.Logger

viur-shop base logger instance

shop.globals.SHOP_INSTANCE: shop.types_global.GlobalVar[shop.shop.Shop]

The shop instance bound to the default html renderer

shop.globals.SHOP_INSTANCE_VI: shop.types_global.GlobalVar[shop.shop.Shop]

The shop instance bound to the vi renderer

shop.globals.SENTINEL: Final[shop.types_global.Sentinel]

Unique sentinel object used to detect if a value was explicitly set or not

shop.globals.DEBUG_DISCOUNTS: shop.types_global.GlobalVar[bool]

Print detailed discount evaluation for debugging

shop.globals.MAX_FETCH_LIMIT: int = 100

Limit used if all entries should be fetched, but it needs to be limited because it’s ViUR.