- Fix cart to import from app.modules.base instead of non-existent app.modules.core.module_registry - Change 'dependencies' to 'requires' (correct attribute name) - Remove invalid 'provides_*' attributes that don't exist in ModuleDefinition dataclass Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
19 lines
500 B
Python
19 lines
500 B
Python
# app/modules/cart/definition.py
|
|
"""
|
|
Cart module definition.
|
|
|
|
This module provides shopping cart functionality for customer storefronts.
|
|
It is session-based and does not require customer authentication.
|
|
"""
|
|
|
|
from app.modules.base import ModuleDefinition
|
|
|
|
module = ModuleDefinition(
|
|
code="cart",
|
|
name="Shopping Cart",
|
|
description="Session-based shopping cart for storefronts",
|
|
version="1.0.0",
|
|
is_self_contained=True,
|
|
requires=["inventory"], # Checks inventory availability
|
|
)
|