shop.globals¶
Global constants and settings for the viur-shop.
Attributes¶
viur-shop base logger instance |
|
The shop instance bound to the default html renderer |
|
The shop instance bound to the vi renderer |
|
Unique sentinel object used to detect if a value was explicitly set or not |
|
Print detailed discount evaluation for debugging |
|
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.